Class: XfOOrth::XfOOrth_InStream
- Defined in:
- lib/fOOrth/library/in_stream_library.rb
Overview
-
The fOOrth InStream file input mini-class.
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
The file used to perform the actual input operations.
Instance Method Summary collapse
-
#initialize(file_name) ⇒ XfOOrth_InStream
constructor
Set up the InStream for the given file name.
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
#file ⇒ Object (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 |