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
7 8 9 |
# File 'lib/eye/patch/settings.rb', line 7 def initialize(filename) @settings = YAML.load(File.open(filename)) end |
Instance Method Details
#[](value) ⇒ Object
11 12 13 |
# File 'lib/eye/patch/settings.rb', line 11 def [](value) parsed[value] end |