Module: Shaddox::SettingContainer

Included in:
Server
Defined in:
lib/shaddox/settings.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &blk) ⇒ Object

Hook to loop up values in @info



38
39
40
# File 'lib/shaddox/settings.rb', line 38

def method_missing(meth, *args, &blk)
  @settings.send meth, *args
end

Instance Method Details

#init_settings(default_settings = {}) ⇒ Object



33
34
35
# File 'lib/shaddox/settings.rb', line 33

def init_settings(default_settings = {})
  @settings = Settings.new.update(default_settings)
end