Class: VORuby::Misc::PropertyFile::SimpleReader
- Defined in:
- lib/voruby/misc/propertyfile.rb
Overview
A very simple property file reader. It can only understand files with entries of the property=value format–nothing fancy.
Instance Method Summary collapse
- #[](name) ⇒ Object
-
#initialize(file_name) ⇒ SimpleReader
constructor
A new instance of SimpleReader.
Constructor Details
#initialize(file_name) ⇒ SimpleReader
Returns a new instance of SimpleReader.
9 10 11 12 |
# File 'lib/voruby/misc/propertyfile.rb', line 9 def initialize(file_name) @file_name = file_name load() end |
Instance Method Details
#[](name) ⇒ Object
27 28 29 |
# File 'lib/voruby/misc/propertyfile.rb', line 27 def [](name) @properties[name] end |