Class: RIO::Stream::InOut

Inherits:
IOBase show all
Includes:
Ops::Stream::Input, Ops::Stream::Output, Filters, Ini
Defined in:
lib/rio/stream.rb

Constant Summary

Constants inherited from Base

Base::KEEPSYM

Instance Method Summary collapse

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, #get_type, #getline, #getrec, #getrow, #recno, #rewind, #to_h

Methods included from Piper::Cp::Input

#|

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, #base_state, #check?, copier, #rectype_mod, #reset, #setup, #when_missing

Methods included from Ops::Stream::Manip

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

Methods included from Ops::Path::ExistOrNot

#symlink

Methods included from Ops::Path::URI

#abs, #abs?, #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, #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?

Instance Method Details

#add_extensionsObject



162
163
164
165
# File 'lib/rio/stream.rb', line 162

def add_extensions()
  Ext::Input.add_extensions(self)
  Ext::Output.add_extensions(self)
end

#add_filtersObject



167
168
169
170
171
172
173
174
175
# File 'lib/rio/stream.rb', line 167

def add_filters
  add_line_filters()

 #       if closeoneof?
 #         add_filter(Filter::CloseOnEOF)
 #         ioh.oncloseproc = proc { self.on_closeoneof }
 #       end
  self
end

#add_rec_methodsObject



158
159
160
161
# File 'lib/rio/stream.rb', line 158

def add_rec_methods()
  self.extend(rectype_mod.module_eval('Input'))
  self.extend(rectype_mod.module_eval('Output'))
end