class B1Config::Options
Constants
- DATA
Public Class Methods
method_missing(meth, *args, &block)
click to toggle source
Check if hash of options include the requested option
# File lib/b1_config/options.rb, line 13 def self.method_missing meth, *args, &block DATA.has_key?(meth.to_s) ? DATA[meth.to_s] : (raise B1Config::Exception.new(2,{meth:meth})) end
update_data(data)
click to toggle source
Update hash of options
# File lib/b1_config/options.rb, line 7 def self.update_data data data = data.kind_of?(Hash) ? data : {} DATA.merge! data end