Sending a message by name

equivalent:

cookie.bake cookie.send(:bake) method_name = "bake" cookie.send(method_name) ```

Duping and freezing and cloning

>> cookie.methods(false)
=> [:bake, :yell]
>> cookie.clone.methods(false)
=> [:bake, :yell]
>> cookie.dup.methods(false)
=> []

 Previous Lesson Next Lesson 

Outline

[menu]

/