eof

ios.eof â true or falseios.eof? â true or false Instance Public methods Returns true if ios is at end of file that means there are no more data to read. The stream must be opened for reading or an IOError will be raised. f = File.new("testfile") dummy = f.readlines f.eof #=> true If ios is a stream such as pipe or socket, IO#eof? blocks until the other end sends some data or closes it. r, w = IO.pipe Thread.new { sleep 1; w.close } r.eof? #=> true after 1 second bl

selection_set

selection_set(*args) Instance Public methods

__create_trusted_slave_obj

__create_trusted_slave_obj(name, keys) Instance Public methods

next_mark

next_mark(index) Instance Public methods Alias for: mark_next

getlocal

time.getlocal â new_timetime.getlocal(utc_offset) â new_time Instance Public methods Returns a new Time object representing time in local time (using the local time zone in effect for this process). If utc_offset is given, it is used instead of the local time. t = Time.utc(2000,1,1,20,15,1) #=> 2000-01-01 20:15:01 UTC t.utc? #=> true l = t.getlocal #=> 2000-01-01 14:15:01 -0600 l.utc? #=> false t == l

get_tab

get_tab(index) Instance Public methods

uri_escaper

uri_escaper() Instance Public methods

lib

lib(filename, data=nil, &block) Instance Public methods Create a new file in the lib/ directory. Code can be specified in a block or a data string can be given. lib("crypto.rb") do "crypted_special_value = '#{rand}--#{Time.now}--#{rand(1337)}--'" end lib("foreign.rb", "# Foreign code is fun")

id2obj

id2obj(canvas, id) Class Public methods

function

function( elements, fname, rest ) Class Public methods