Eric Li

50%
Flag icon
the method_missing version will run somewhat more slowly. On my machine, the first, traditionally written class runs about 10 percent faster than calling add on the second version and letting the unknown method fall through to method_missing.
Design Patterns in Ruby (Addison-Wesley Professional Ruby Series)
Rate this book
Clear rating
Open Preview