Fat Ruby

Fat Ruby

The adventures of Ruby and the Gang.


Conversion Functions

Posted on .

Roles and Messages Object-oriented design is about sending messages to roles. An object fulfills a role if it responds to the messages the role requires: class Crow def squeeze 'Squawk!' end def fly 'Flap!' end end class SqueakToy def squeeze…