Module: Laraib::Configuration
Instance Method Summary collapse
Instance Method Details
#load(file_path) ⇒ Object
22 23 24 |
# File 'lib/laraib/configuration.rb', line 22 def load(file_path) @settings = YAML::load(IO.read(file_path)) end |
#save(file_path, config_hash) ⇒ Object
26 27 28 |
# File 'lib/laraib/configuration.rb', line 26 def save(file_path, config_hash) File.open(file_path, 'w+') { |f| f.puts config_hash.to_yaml } end |
#settings ⇒ Object
30 31 32 |
# File 'lib/laraib/configuration.rb', line 30 def settings @settings end |