Class: SmsKit::Config::Store
- Inherits:
-
Hash
- Object
- Hash
- SmsKit::Config::Store
- Defined in:
- lib/sms_kit/config.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/sms_kit/config.rb', line 17 def method_missing meth, *args unless respond_to? meth if key = meth.to_s[/(.*)=$/, 1] self[key.to_sym] = args.first else self[meth.to_sym] end else super end end |