Class: FileIO

Inherits:
StringIO
  • Object
show all
Defined in:
lib/modulofcm/file_i_o.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#identifierObject (readonly)

Returns the value of attribute identifier.



4
5
6
# File 'lib/modulofcm/file_i_o.rb', line 4

def identifier
  @identifier
end

#original_filenameObject (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

#readObject



12
13
14
15
16
# File 'lib/modulofcm/file_i_o.rb', line 12

def read(...)
  rewind

  super(...)
end