Method: EnergyPlus::DDYFile#initialize

Defined in:
lib/energyplus/DDYFile.rb

#initialize(path) ⇒ DDYFile

Returns a new instance of DDYFile.



23
24
25
26
27
28
29
30
31
32
33
# File 'lib/energyplus/DDYFile.rb', line 23

def initialize(path)
  @path = path
  @lines = []
  if File.exists?(@path)
    File.open(@path) do |f|
      while line = f.gets
        @lines << line.chomp
      end
    end
  end
end