Module: Feste::Config
- Defined in:
- lib/feste.rb
Class Method Summary collapse
Class Method Details
.method_missing(meth, *args, &block) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/feste.rb', line 37 def self.method_missing(meth, *args, &block) key = meth.to_s.slice(0, meth.to_s.length - 1).to_sym if Feste..has_key?(key) Feste.[key] = args[0] else raise( NoConfigurationError, "There is no configuration option for #{key}" ) end end |