Method: XfOOrth::FileSource#initialize

Defined in:
lib/fOOrth/compiler/source/file_source.rb

#initialize(name) ⇒ FileSource

Initialize from a file name.
Parameters:

  • name - The name of the file with the fOOrth source code.



13
14
15
16
17
18
# File 'lib/fOOrth/compiler/source/file_source.rb', line 13

def initialize(name)
  @name      = name
  @file      = File.new(name, "r")
  @read_step = @file.each_line
  super()
end