Module: Figly::Settings::SettingsHash
- Defined in:
- lib/figly/settings.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &blk) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/figly/settings.rb', line 4 def method_missing(meth, *args, &blk) m = meth.to_s if has_key? m value = self[m] return value.extend(SettingsHash) if value.instance_of? Hash value end end |