a = "hello" b = a.dup class <<a def to_s "The value is '#{self}'" end def twoTimes self + self end end a.to_s a.twoTimes b.to_s