Ruby: Strings and Methods


Please someone help me! The code I am inputting is as follows:name.method1.method2.method3="Name is James Bond"* this is the result I get:undefined local variable or method `name' for #. Am I getting it wrong in the Code?
I want to get the name in upcase, reverse and downcase.


Did you really write it like that, or did you use the actual names for the methods that you wanted to use?


I wrote it exactly like that. Thats the 'hint' posted on the course.


Instead of using the method1.method2.method3, because there are no real methods with those names, which is why it is telling you "undefined local variable or method", you should use the actual names of the methods that you want to use.