Class: Setty::Settings

Inherits:
Delegator
  • Object
show all
Defined in:
lib/setty/settings.rb

Instance Method Summary collapse

Constructor Details

#initialize(loader) ⇒ Settings

Returns a new instance of Settings.



3
4
5
6
# File 'lib/setty/settings.rb', line 3

def initialize(loader)
  @loader  = loader
  @options = loader.load_options
end

Instance Method Details

#__getobj__Object



8
9
10
# File 'lib/setty/settings.rb', line 8

def __getobj__
  @options
end

#reloadObject



12
13
14
# File 'lib/setty/settings.rb', line 12

def reload
  @options = @loader.load_options
end