Class: RIO::Stream::Output

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

Constant Summary

Constants inherited from Base

Base::KEEPSYM

Instance Method Summary collapse

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 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



140
141
142
# File 'lib/rio/stream.rb', line 140

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

#add_filtersObject



143
144
145
146
147
148
# File 'lib/rio/stream.rb', line 143

def add_filters
  add_filter(Filter::GZipWrite) if gzip?
  #add_filter(Filter::FasterCSV) if csv?
  #add_filter(Filter::YAML) if yaml?
  self
end

#add_rec_methodsObject



137
138
139
# File 'lib/rio/stream.rb', line 137

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