class LightIO::Library::IO

Public Instance Methods

binmode() click to toggle source
# File lib/lightio/library/io.rb, line 238
def binmode
  @obj.binmode
  self
end
lineno() click to toggle source
# File lib/lightio/library/io.rb, line 215
def lineno
  @readbuf.lineno
end
lineno=(no) click to toggle source
# File lib/lightio/library/io.rb, line 219
def lineno= no
  @readbuf.lineno = no
end
rewind() click to toggle source
# File lib/lightio/library/io.rb, line 223
def rewind
  # clear buf if seek offset is not zero
  unless @seek.zero?
    @seek = 0
    @readbuf.string.clear
  end
  @readbuf.rewind
end
seek(*args) click to toggle source
# File lib/lightio/library/io.rb, line 232
def seek(*args)
  @readbuf.string.clear
  @seek = args[0]
  @obj.seek(*args)
end
set_encoding(*args) click to toggle source
Calls superclass method
# File lib/lightio/library/io.rb, line 210
def set_encoding(*args)
  @readbuf.set_encoding(*args)
  super(*args)
end
to_io() click to toggle source
# File lib/lightio/library/io.rb, line 11
def to_io
  self
end