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

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

Instance Method Summary collapse

Instance Method Details

#contentsObject



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

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

#each_byte(*args, &block) ⇒ Object



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

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

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



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

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

#each_line(*args, &block) ⇒ Object



53
54
55
# File 'lib/rio/ops/stream/read.rb', line 53

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

#getc(*args) ⇒ Object



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

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

#gets(*args) ⇒ Object



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

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

#linenoObject



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

def lineno()     ior.lineno       end

#lineno=(arg) ⇒ Object



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

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

#read(*args) ⇒ Object



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

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

#readchar(*args) ⇒ Object



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

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

#readline(*args) ⇒ Object



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

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

#readlines(*args) ⇒ Object



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

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

#readpartial(*args) ⇒ Object



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

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

#ungetc(*args) ⇒ Object



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

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