Class: Hash
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *arg) ⇒ Object
16 17 18 19 |
# File 'lib/cowtech-lib/console.rb', line 16 def method_missing(method, *arg) # PER ORA SUPPORTIAMO SOLO I GETTER self[method.to_sym] end |
Instance Method Details
#respond_to?(method) ⇒ Boolean
21 22 23 |
# File 'lib/cowtech-lib/console.rb', line 21 def respond_to?(method) self.has_key?(method.to_sym) end |