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

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

Instance Method Summary collapse

Instance Method Details

#binmodeObject



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

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

#flushObject



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

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

#fsyncObject



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

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

#isattyObject



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

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

#pidObject



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

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

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



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

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

#to_ioObject



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

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

#tty?Boolean

Returns:

  • (Boolean)


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

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