Class: Configus::Config
- Inherits:
-
Object
- Object
- Configus::Config
- Defined in:
- lib/persey/configus_patch.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &blk) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/persey/configus_patch.rb', line 2 def method_missing(meth, *args, &blk) if Persey.config.to_hash.has_key?(meth) Persey.config.send(meth) else raise "'#{meth}' key does not exist in your config" end end |