Class: RIO::Stream::Base

Inherits:
RIO::State::Base show all
Defined in:
lib/rio/stream/base.rb

Direct Known Subclasses

Open

Constant Summary

Constants inherited from RIO::State::Base

RIO::State::Base::KIOSYMS

Instance Attribute Summary

Attributes inherited from RIO::State::Base

#data, #try_state

Instance Method Summary collapse

Methods inherited from RIO::State::Base

#==, #===, #=~, #base_state, #became, #become, #callstr, #clone_rio, default_cx, #ensure_cmd_rio, #ensure_rio, #error, #fs, #gofigure, #hash, #method_missing, #method_missing_trace_str, new_other, #new_rio, #new_rio_cx, #reset, #retryreset, #softreset, #to_a, #to_ary, #to_rl, #to_uri, #to_url, #uri, #when_missing

Methods included from Fwd

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

Methods included from ZipFile::Cx

#zipfile

Methods included from RIO::Symantics

#rtn_new, #rtn_reset, #rtn_rio, #rtn_self, #rtn_val

Methods included from Ext::YAML::Cx

#document, #documents, #object, #objects, #skipdocuments, #skipobjects, #yaml, #yaml?, #yamldoc

Methods included from Ext::SplitLines::Cx

#columns, #columns?, #skipcolumns, #splitlines, #splitlines?

Methods included from Ext::CSV::Cx

#columns, #columns?, #csv, #csv?, #fields, #fields?, #headers, #headers?, #skipcolumns, #skipfields

Methods included from Cx::Methods

#+@, #_arg_skip, #_noarg_skip, #a, #a!, #all, #all?, #binmode, #binmode?, #bytes, #bytes_, #closeoncopy, #closeoncopy?, #closeoneof, #closeoneof?, #copying, #copying?, #copying_done, #copying_from, #copying_from?, #copying_from_done, #copying_to, #copying_to?, #copying_to_done, #dir_iter?, #dirs, #enc, #enc?, #enc_opts?, #entries, #ext, #ext?, #ext_enc?, #files, #gzip, #gzip?, #inputmode?, #int_enc?, #line, #line_, #lines, #lines_, make_filter_methods, #mode, #mode?, #noall, #noautoclose, #nocloseoncopy, #nocloseoneof, #noext, #norecurse, #nostreamenum, #nostreamenum?, #nosync, #outputmode?, #r, #r!, #record, #record_, #records, #records_, #recurse, #row, #row_, #rows, #rows_, #skip, #skipdirs, #skipentries, #skipfiles, #skiplines, #skipping?, #skiprecords, #skiprecords_, #skiprows, #split, #stream_iter?, #sync, #sync?, #w, #w!

Constructor Details

#initialize(*args) ⇒ Base

Returns a new instance of Base.



31
32
33
# File 'lib/rio/stream/base.rb', line 31

def initialize(*args)
  super
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RIO::State::Base

Instance Method Details

#dir?Boolean

The copy code requires a directory test Streams are never directories

Returns:

  • (Boolean)


44
# File 'lib/rio/stream/base.rb', line 44

def dir?() false end

#initialize_copy(other) ⇒ Object



34
35
36
# File 'lib/rio/stream/base.rb', line 34

def initialize_copy(other)
  super
end

#iostate(*args) ⇒ Object



38
# File 'lib/rio/stream/base.rb', line 38

def iostate(*args) self end

#recnoObject



40
# File 'lib/rio/stream/base.rb', line 40

def recno() nil end

#stream?Boolean

Returns:

  • (Boolean)


39
# File 'lib/rio/stream/base.rb', line 39

def stream?() true end