Class: XfOOrth::XfOOrth_InStream

Inherits:
Object
  • Object
show all
Defined in:
lib/fOOrth/library/in_stream_library.rb

Overview

  • The fOOrth InStream file input mini-class.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_name) ⇒ XfOOrth_InStream

Set up the InStream for the given file name.



15
16
17
18
19
# File 'lib/fOOrth/library/in_stream_library.rb', line 15

def initialize(file_name)
  @file = File.new(file_name, 'r')
rescue
  error "F50: Unable to open the file #{file_name} for reading."
end

Instance Attribute Details

#fileObject (readonly)

The file used to perform the actual input operations.



12
13
14
# File 'lib/fOOrth/library/in_stream_library.rb', line 12

def file
  @file
end