class Rasana::Config

Attributes

config[RW]

Public Class Methods

new(options) click to toggle source
# File lib/rasana/config.rb, line 7
def initialize(options)
  _config = YAML.load(open("#{ENV['HOME']}/.rasana.yml").read)
  _config = _config.merge(verbose: true) if options["verbose"]
  @config = _config
end

Public Instance Methods

[](key) click to toggle source
# File lib/rasana/config.rb, line 13
def [](key)
  config[key]
end
[]=(key, val) click to toggle source
# File lib/rasana/config.rb, line 17
def []=(key, val)
  config[key] = val
end