Module: Settingslogic::EigenMethodDefiner
- Included in:
- Settingslogic
- Defined in:
- lib/settingslogic.rb
Overview
:nodoc:
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
58 59 60 61 62 63 64 65 66 67 |
# File 'lib/settingslogic.rb', line 58 def method_missing(name, *args, &block) if key?(name.to_s) define_eigen_method(name.to_s) value = self[name.to_s] value.extend(EigenMethodDefiner) if value.is_a?(Hash) value else super end end |