Class: Jeera::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/jeera/config.rb

Constant Summary collapse

FILE =
"#{`echo ~`.strip}/.jeera"

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



10
11
12
13
14
15
16
17
18
19
# File 'lib/jeera/config.rb', line 10

def initialize
  config = YAML.load_file(FILE)
  config.each do |key, value|
    instance_variable_set :"@#{key}", value
    self.class.send :attr_reader, key.to_sym
    # if key == 'custom_field_map'
    # end
  end

end