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)
=> []

Next Lesson   Previous Lesson

Outline

[menu]

/