class Spawno::Configuration

Attributes

settings[RW]

Public Class Methods

new() click to toggle source
# File lib/spawno/config.rb, line 7
def initialize
  self.settings = {}
end

Public Instance Methods

load_from_file(path) click to toggle source
# File lib/spawno/config.rb, line 11
def load_from_file(path)
  self.settings.merge! YAML.load_file(path)
end
method_missing(method_name) click to toggle source
# File lib/spawno/config.rb, line 19
def method_missing(method_name)
  settings[method_name.to_s]
end
setup(path = nil) click to toggle source
# File lib/spawno/config.rb, line 15
def setup(path = nil)
  load_from_file(path) if path
end