Class: Langusta::JavaPropertyReader
- Inherits:
-
Object
- Object
- Langusta::JavaPropertyReader
- Defined in:
- lib/langusta/java_property_reader.rb
Instance Method Summary collapse
- #[](property) ⇒ Object
-
#initialize(filename) ⇒ JavaPropertyReader
constructor
This is a minimal implementation, don’t expect this to actually work.
- #underlying_hash ⇒ Object
Constructor Details
#initialize(filename) ⇒ JavaPropertyReader
This is a minimal implementation, don’t expect this to actually work.
5 6 7 8 |
# File 'lib/langusta/java_property_reader.rb', line 5 def initialize(filename) @lines = File.open(filename).readlines parse() end |
Instance Method Details
#[](property) ⇒ Object
10 11 12 |
# File 'lib/langusta/java_property_reader.rb', line 10 def [](property) @properties[property] end |
#underlying_hash ⇒ Object
14 15 16 |
# File 'lib/langusta/java_property_reader.rb', line 14 def @properties end |