Class: FileIO
- Inherits:
-
StringIO
- Object
- StringIO
- FileIO
- Defined in:
- lib/modulofcm/file_i_o.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#original_filename ⇒ Object
readonly
Returns the value of attribute original_filename.
Instance Method Summary collapse
-
#initialize(stream, filename) ⇒ FileIO
constructor
A new instance of FileIO.
- #read ⇒ Object
Constructor Details
#initialize(stream, filename) ⇒ FileIO
Returns a new instance of FileIO.
6 7 8 9 10 |
# File 'lib/modulofcm/file_i_o.rb', line 6 def initialize(stream, filename) super(stream.to_s) @original_filename = filename @filename = filename end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
4 5 6 |
# File 'lib/modulofcm/file_i_o.rb', line 4 def identifier @identifier end |
#original_filename ⇒ Object (readonly)
Returns the value of attribute original_filename.
3 4 5 |
# File 'lib/modulofcm/file_i_o.rb', line 3 def original_filename @original_filename end |
Instance Method Details
#read ⇒ Object
12 13 14 15 16 |
# File 'lib/modulofcm/file_i_o.rb', line 12 def read(...) rewind super(...) end |