Class: RIO::Stream::Duplex::InOut

Inherits:
InOut show all
Includes:
Ops
Defined in:
lib/rio/stream/duplex.rb

Instance Method Summary collapse

Methods included from Ops

#ior, #iow

Methods included from Fwd

#fwd, #fwd_reader, #fwd_readers, #fwd_writer, #fwd_writers

Methods inherited from InOut

#add_extensions, #add_filters, #add_rec_methods

Methods included from Filters

#add_line_filters

Methods included from Ini

#setup

Methods included from Ops::Stream::Output

#close_write, #copyclose, #putrec, #putrec!, #rtn_close, #then_close, #wclose

Methods included from Cp::Stream::Output

#<, #<<

Methods included from Cp::Util::InOut

#cpclose, #cpclose0

Methods included from Ops::Stream::Write

#_!, #print, #print!, #printf, #printf!, #putc, #putc!, #puts, #puts!, #write, #write!

Methods included from Ops::Stream::Status

#closed?, #eof?, #open?, #stat

Methods included from Ops::Stream::Input

#close_read, #copy_stream, #each, #each_0, #each_record, #each_row, #empty?, #get_type, #getline, #getrec, #getrow, #recno, #rewind, #to_h

Methods included from Piper::Cp::Input

#has_output_dest?, #last_rio, #|

Methods included from Cp::Stream::Input

#>, #>>

Methods included from Grande

#[]

Methods included from Match::Common

#ss_type?

Methods included from Ops::Stream::Read

#contents, #each_byte, #each_bytes, #each_line, #getc, #gets, #lineno, #lineno=, #read, #readchar, #readline, #readlines, #readpartial, #ungetc

Methods inherited from IOBase

#add_filter, #check?, copier, #rectype_mod, #reset, #setup, #when_missing

Methods included from Ops::Stream::Manip

#flush, #fsync, #isatty, #pid, #seek, #to_io, #tty?

Methods included from Ops::Path::ExistOrNot

#symlink

Methods included from Ops::Path::URI

#abs, #absolute?, #base, #merge, #rel, #route_from, #route_to, #setbase

Methods included from Ops::Path::Create

#/, #cleanpath, #cwd, #getwd, #join, #join!, #rootpath

Methods included from Ops::Path::Query

#+, #basename, #dirname, #expand_path, #extname, #filename, #gsub, #normalize, #splitpath, #sub

Methods included from Ops::Path::Status

#atime, #ctime, #executable?, #executable_real?, #fnmatch, #fnmatch?, #ftype, #grpowned?, #mtime, #owned?, #readable?, #readable_real?, #root?, #setgid?, #setuid?, #size, #size?, #stat, #sticky?, #writable?, #writable_real?, #zero?

Methods included from Ops::Path::Test

#blockdev?, #chardev?, #closed?, #directory?, #exist?, #file?, #open?, #pipe?, #socket?, #symlink?

Methods inherited from Base

#to_a

Instance Method Details

#base_stateObject



85
# File 'lib/rio/stream/duplex.rb', line 85

def base_state() 'Stream::Duplex::Close' end

#getObject



86
87
88
89
90
91
92
93
# File 'lib/rio/stream/duplex.rb', line 86

def get()
  until self.eof?
    raw_rec = self._get_rec
    return to_rec_(raw_rec) if @get_selrej.match?(raw_rec,@recno)
  end
  self.close if closeoneof?
  nil
end