Class: ConfigFu::Configuration
- Inherits:
-
Object
- Object
- ConfigFu::Configuration
- Includes:
- Singleton
- Defined in:
- lib/config_fu.rb
Class Method Summary collapse
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/config_fu.rb', line 30 def method_missing(meth, *args) if meth.to_s =~ /\w+=/ self.class.send(:attr_accessor, meth.to_s.gsub(/=/, '')) send(meth, *args) end end |