Class: Eye::Patch::Settings

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/eye/patch/settings.rb

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ Settings

Returns a new instance of Settings.



11
12
13
14
15
16
17
# File 'lib/eye/patch/settings.rb', line 11

def initialize(filename)
  file = File.new(filename)
  erb = ERB.new(file.read)
  erb.filename = file.path

  @settings = YAML.load(erb.result)
end