Class: RIO::Stream::Output

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

Direct Known Subclasses

Duplex::Output

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

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

Methods included from Fwd

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

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

#add_extensionsObject



135
136
137
# File 'lib/rio/stream.rb', line 135

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

#add_filtersObject



138
139
140
141
142
143
144
145
146
147
148
149
150
151
# File 'lib/rio/stream.rb', line 138

def add_filters
  if gzip?
    gz = Zlib::GzipWriter.new(self.ioh.ios)
    gz.extend Filter::GZipMissing
    self.ioh.ios = gz
    add_filter(Filter::GZipWrite)
  end
  if csv?
    require 'rio/ext/csv/filter'  if $USE_FASTER_CSV
    self.extend(::RIO::Ext::CSV::Output)
    add_csv_filter() if $USE_FASTER_CSV
  end
  self
end

#add_rec_methodsObject



132
133
134
# File 'lib/rio/stream.rb', line 132

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