Module: RIO::Ops::Stream::Manip

Extended by:
Fwd
Included in:
Stream::IOBase
Defined in:
lib/rio/ops/stream.rb

Instance Method Summary collapse

Methods included from Fwd

fwd, fwd_reader, fwd_readers, fwd_writer, fwd_writers

Instance Method Details

#flushObject



58
# File 'lib/rio/ops/stream.rb', line 58

def flush() rtn_self { self.ioh.flush } end

#fsyncObject



59
# File 'lib/rio/ops/stream.rb', line 59

def fsync() rtn_self { self.ioh.fsync } end

#isattyObject



57
# File 'lib/rio/ops/stream.rb', line 57

def isatty() ioh ? ioh.isatty : false end

#pidObject



54
# File 'lib/rio/ops/stream.rb', line 54

def pid() ioh ? ioh.pid : nil end

#seek(amount, whence = IO::SEEK_SET) ⇒ Object



60
# File 'lib/rio/ops/stream.rb', line 60

def seek(amount,whence=IO::SEEK_SET) rtn_self { self.ioh.seek(amount,whence) } end

#to_ioObject



55
# File 'lib/rio/ops/stream.rb', line 55

def to_io() ioh ? ioh.to_io : nil end

#tty?Boolean

Returns:

  • (Boolean)


56
# File 'lib/rio/ops/stream.rb', line 56

def tty?() ioh ? ioh.tty? : false end