Class: Langusta::JavaPropertyReader

Inherits:
Object
  • Object
show all
Defined in:
lib/langusta/java_property_reader.rb

Instance Method Summary collapse

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_hashObject



14
15
16
# File 'lib/langusta/java_property_reader.rb', line 14

def underlying_hash
  @properties
end