class Contributor::Configuration

Public Instance Methods

load_configuration!() click to toggle source
# File lib/contributor/configuration.rb, line 5
def load_configuration!
  yaml = YAML.load_file(yaml_file)
  self.authors = yaml['authors'].map { |key, values| Author.new(key, values) }
  self.terms = yaml['terms']
end
method_missing(action, *args) click to toggle source
# File lib/contributor/configuration.rb, line 11
def method_missing(action, *args)
  if /^(?<method>.*)=$/ =~ action.to_s
    self.send(:[]=, *([method] + args))
  else
    self[action.to_s] ||= self.class.new
    self[action.to_s]
  end
end