Class: Setty::Loader

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

Instance Method Summary collapse

Constructor Details

#initialize(path, enviroment) ⇒ Loader

Returns a new instance of Loader.



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

def initialize(path, enviroment)
  @base_path  = Pathname(path)
  @enviroment = enviroment.to_s
end

Instance Method Details

#load_optionsObject



17
18
19
# File 'lib/setty/loader.rb', line 17

def load_options
  load_option_and_sub_options @base_path
end