Class: VagrantPlugins::Configuration::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::Configuration::Config
- Defined in:
- lib/vagrant-configuration/config.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_id) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/vagrant-configuration/config.rb', line 12 def method_missing(method_id) env = ENV[method_id.to_s.upcase] conf = C.send(method_id) return env if env return conf if conf raise Exception.new("no configuration entry was found for #{method_id}") end |