Eric Li

45%
Flag icon
The key bit of syntax in this code is this line:    class << bto Essentially, this code is an instruction to modify the behavior of the bto object independently of its class. You can achieve the same effect with a different syntax by simply defining the methods on the instance:
Design Patterns in Ruby (Addison-Wesley Professional Ruby Series)
Rate this book
Clear rating
Open Preview