#from http://pragmaticprogrammer.com/titles/ruby/code/smp382.html # comments added a = "hello" b = a.dup class <