class Chore::Configuration

Wrapper around an OpenStruct to define configuration data TODO: Add required opts, and validate that they're set

Public Instance Methods

merge_hash(hsh={}) click to toggle source

Helper method to make merging Hashes into OpenStructs easier

# File lib/chore/configuration.rb, line 6
def merge_hash(hsh={})
  hsh.keys.each do |k|
    self.send("#{k.to_sym}=",hsh[k])
  end
  self
end