Class: CompositeReadIOTest::Part

Inherits:
Struct
  • Object
show all
Defined in:
test/composite_read_io_test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#to_ioObject

Returns the value of attribute to_io

Returns:

  • (Object)

    the current value of to_io



5
6
7
# File 'test/composite_read_io_test.rb', line 5

def to_io
  @to_io
end

Instance Method Details

#lengthObject



6
# File 'test/composite_read_io_test.rb', line 6

def length() to_io.string.length end