set_limit 2

set_limit(limit_type, slave = '', opts = {}) Instance Public methods

set_spans

set_spans(*pairs) Instance Public methods

content_length

content_length() Instance Public methods The content-length header

pos

pos() Instance Public methods # move to Tk::Text::IndexModMethods module def +(mod) return chars(mod) if mod.kind_of?(Numeric) mod = mod.to_s if mod =~ /^\s*[+-]?\d/ Tk::Text::IndexString.new(@id + ' + ' + mod) else Tk::Text::IndexString.new(@id + ' ' + mod) end end def -(mod) return chars(-mod) if mod.kind_of?(Numeric) mod = mod.to_s if mod =~ /^\s*[+-]?\d/ Tk::Text::IndexString.new(@id + ' - ' + mod) elsif mod =~ /^\s*[-]\s+(\d.*)$/ Tk::Text::IndexString.new(@id + ' -

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

build

build(name) Instance Public methods

close

close() Instance Public methods Close session storage. A no-op.

advance

advance(options) Instance Public methods Uses Date to provide precise Time calculations for years, months, and days. The options parameter takes a hash with any of these keys: :years, :months, :weeks, :days, :hours, :minutes, :seconds.

get_shlib_path_head

get_shlib_path_head() Instance Public methods

compare_with_coercion

compare_with_coercion(other) Instance Public methods Allow Date to be compared with Time by converting to DateTime and relying on the <=> from there. <=>