Class: IO::WithDummyPos

Inherits:
Object
  • Object
show all
Defined in:
lib/io/with_dummy_pos.rb

Overview

IO with #pos returning invalid value.

Class Method Summary collapse

Class Method Details

.new(io) ⇒ Object



7
8
9
10
11
12
# File 'lib/io/with_dummy_pos.rb', line 7

def self.new(io)
  def io.pos
    0
  end
  return io
end