--90e6ba53aa88d572f404aad61596 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Aug 19, 2011 at 1:30 AM, zuerrong <zuerrong / gmail.com> wrote: > Hello, > > How to switch a string to an object? > for example, > > hello world" > puts "hello".to_object > > will print "world". > > Thanks. > > Objects are just things that can be assigned to variables -- you can also invoke methods on them, and they have classes. So strings, like nearly everything in Ruby, are objects. What are you expecting it to output? --90e6ba53aa88d572f404aad61596--