Class: RIO::Stream::InOut
- Includes:
- Ops::Stream::Input, Ops::Stream::Output, Filters, Ini
- Defined in:
- lib/rio/stream.rb
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Methods included from Filters
Methods included from Ini
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
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
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
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_extensions ⇒ Object
163 164 165 166 |
# File 'lib/rio/stream.rb', line 163 def add_extensions() Ext::Input.add_extensions(self) Ext::Output.add_extensions(self) end |
#add_filters ⇒ Object
168 169 170 171 172 173 174 175 176 |
# File 'lib/rio/stream.rb', line 168 def add_filters add_line_filters() # if closeoneof? # add_filter(Filter::CloseOnEOF) # ioh.oncloseproc = proc { self.on_closeoneof } # end self end |
#add_rec_methods ⇒ Object
159 160 161 162 |
# File 'lib/rio/stream.rb', line 159 def add_rec_methods() self.extend(rectype_mod.module_eval('Input')) self.extend(rectype_mod.module_eval('Output')) end |