Method: AppConfig.method_missing
- Defined in:
- lib/app-config.rb
.method_missing(method, *args, &block) ⇒ Object
81 82 83 84 85 86 87 88 |
# File 'lib/app-config.rb', line 81 def self.method_missing(method, *args, &block) if @klass || self.configuration.config_file @klass ||= Config.new(self.configuration) @klass.__send__(method, *args, &block) else raise Error, "Please set a config_file with AppConfig.configure first" end end |