Module: ConfigLoader::Delegator

Defined in:
lib/config_loader/yaml.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &block) ⇒ Object



38
39
40
41
# File 'lib/config_loader/yaml.rb', line 38

def method_missing(m, *args, &block)
	raise "A #config method must be defined in the container for ConfigLoader::Delegator, for it to delegate to #config: delegation attempted with #{m}" unless self.respond_to?(:config)
  config.send(m)
end