Class: Symbol
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
8 9 10 11 |
# File 'lib/ext/symbol.rb', line 8 def method_missing(name, *args, &block) str = to_s str.respond_to?(name) ? str.send(name, *args, &block) : super end |
Instance Method Details
#walk(obj) ⇒ Object
4 5 6 |
# File 'lib/ext/symbol.rb', line 4 def walk(obj) to_s.walk(obj) end |