Module: Configutron
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(key) ⇒ Object (private)
15 16 17 |
# File 'lib/configutron.rb', line 15 def method_missing(key) configutron[key].to_openstruct || nil end |
Instance Method Details
#constant=(name) ⇒ Object
10 11 12 |
# File 'lib/configutron.rb', line 10 def constant=(name) Kernel.const_set(name, Configutron) end |