Class: Jeera::Config
Constant Summary collapse
- FILE =
"#{`echo ~`.strip}/.jeera"
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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 |