Class: Configem::Configuration
- Inherits:
-
Object
- Object
- Configem::Configuration
- Defined in:
- lib/configem.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
31 32 33 34 |
# File 'lib/configem.rb', line 31 def method_missing(method, *args) singleton_class.class_eval { attr_accessor "#{method.to_s.delete("=")}" } send(method, args[0]) end |