Module: RIO::Ops::Stream::Read

Included in:
Input
Defined in:
lib/rio/ops/stream/read.rb

Instance Method Summary collapse

Instance Method Details

#contentsObject



62
# File 'lib/rio/ops/stream/read.rb', line 62

def contents()                  _post_eof_close { ior.gets(nil) || "" }         end

#each_byte(*args, &block) ⇒ Object



67
# File 'lib/rio/ops/stream/read.rb', line 67

def each_byte(*args,&block)     _post_eof_close { ior.each_byte(*args,&block) } end

#each_bytes(nb, *args, &block) ⇒ Object



68
# File 'lib/rio/ops/stream/read.rb', line 68

def each_bytes(nb,*args,&block) _post_eof_close { ior.each_bytes(nb,&block) }   end

#each_line(*args, &block) ⇒ Object



64
65
66
# File 'lib/rio/ops/stream/read.rb', line 64

def each_line(*args,&block)     
  _post_eof_close { ior.each_line(*args,&block) } 
end

#getc(*args) ⇒ Object



75
# File 'lib/rio/ops/stream/read.rb', line 75

def getc(*args)                 _pre_eof_close { ior.getc(*args) }               end

#gets(*args) ⇒ Object



71
# File 'lib/rio/ops/stream/read.rb', line 71

def gets(*args)                 _pre_eof_close { ior.gets(*args) }               end

#linenoObject



81
# File 'lib/rio/ops/stream/read.rb', line 81

def lineno()     ior.lineno       end

#lineno=(arg) ⇒ Object



82
# File 'lib/rio/ops/stream/read.rb', line 82

def lineno=(arg) ior.lineno = arg end

#read(*args) ⇒ Object



70
# File 'lib/rio/ops/stream/read.rb', line 70

def read(*args)                 _pre_eof_close { ior.read(*args) }               end

#readchar(*args) ⇒ Object



74
# File 'lib/rio/ops/stream/read.rb', line 74

def readchar(*args)             _pre_eof_close { ior.readchar(*args) }           end

#readline(*args) ⇒ Object



72
# File 'lib/rio/ops/stream/read.rb', line 72

def readline(*args)             _pre_eof_close { ior.readline(*args) }           end

#readlines(*args) ⇒ Object



63
# File 'lib/rio/ops/stream/read.rb', line 63

def readlines(*args)            _post_eof_close { ior.readlines(*args) }        end

#readpartial(*args) ⇒ Object



73
# File 'lib/rio/ops/stream/read.rb', line 73

def readpartial(*args)          _pre_eof_close { ior.readpartial(*args) }        end

#ungetc(*args) ⇒ Object



77
78
79
80
# File 'lib/rio/ops/stream/read.rb', line 77

def ungetc(*args)
  ior.ungetc(*args)
  self
end