Class: LightIO::Library::IO
Defined Under Namespace
Modules: IOMethods
Instance Method Summary
collapse
copy_stream, open, pipe, select
included, #initialize
Methods included from Base
included, #initialize
Methods included from IOMethods
#close, #eof, #flush, #getbyte, #getc, #gets, #lightio_initialize, #print, #printf, #puts, #read, #readbyte, #readchar, #readline, #readlines, #readpartial, #wait, #wait_readable, #wait_writable, #write
Instance Method Details
#binmode ⇒ Object
238
239
240
241
|
# File 'lib/lightio/library/io.rb', line 238
def binmode
@obj.binmode
self
end
|
#lineno ⇒ Object
215
216
217
|
# File 'lib/lightio/library/io.rb', line 215
def lineno
@readbuf.lineno
end
|
#lineno=(no) ⇒ Object
219
220
221
|
# File 'lib/lightio/library/io.rb', line 219
def lineno= no
@readbuf.lineno = no
end
|
#rewind ⇒ Object
223
224
225
226
227
228
229
230
|
# File 'lib/lightio/library/io.rb', line 223
def rewind
unless @seek.zero?
@seek = 0
@readbuf.string.clear
end
@readbuf.rewind
end
|
#seek(*args) ⇒ Object
232
233
234
235
236
|
# File 'lib/lightio/library/io.rb', line 232
def seek(*args)
@readbuf.string.clear
@seek = args[0]
@obj.seek(*args)
end
|
#set_encoding(*args) ⇒ Object
210
211
212
213
|
# File 'lib/lightio/library/io.rb', line 210
def set_encoding(*args)
@readbuf.set_encoding(*args)
super(*args)
end
|
#to_io ⇒ Object
11
12
13
|
# File 'lib/lightio/library/io.rb', line 11
def to_io
self
end
|