Class: VORuby::Misc::PropertyFile::SimpleReader

Inherits:
Object
  • Object
show all
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

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