Class: Eye::Patch::Settings
- Inherits:
-
Object
- Object
- Eye::Patch::Settings
- Defined in:
- lib/eye/patch/settings.rb
Instance Method Summary collapse
- #[](value) ⇒ Object
-
#initialize(filename) ⇒ Settings
constructor
A new instance of Settings.
Constructor Details
#initialize(filename) ⇒ Settings
5 6 7 |
# File 'lib/eye/patch/settings.rb', line 5 def initialize(filename) @settings = YAML.load(File.open(filename)) end |
Instance Method Details
#[](value) ⇒ Object
9 10 11 |
# File 'lib/eye/patch/settings.rb', line 9 def [](value) parsed[value] end |