-

cmp - numeric â complex Instance Public methods Performs subtraction. Complex(2, 3) - Complex(2, 3) #=> (0+0i) Complex(900) - Complex(1) #=> (899+0i) Complex(-2, 9) - Complex(-9, 2) #=> (7+7i) Complex(9, 8) - 4 #=> (5+8i) Complex(20, 9) - 9.8 #=> (10.2+9i)

visit_Integer

visit_Integer(o) Instance Public methods Also aliased as: visit_TrueClass, visit_FalseClass, visit_Date

ord

str.ord â integer Instance Public methods Return the Integer ordinal of a one-character string. "a".ord #=> 97

class_dir

class_dir() Instance Public methods Directory where generated class HTML files live relative to the output dir.

call

call(env) Instance Public methods

close

gdbm.close â nil Instance Public methods Closes the associated database file.

arity

meth.arity â fixnum Instance Public methods Returns an indication of the number of arguments accepted by a method. Returns a nonnegative integer for methods that take a fixed number of arguments. For Ruby methods that take a variable number of arguments, returns -n-1, where n is the number of required arguments. For methods written in C, returns -1 if the call takes a variable number of arguments. class C def one; end def two(a); end def three(*a); end def four(a, b

parent

parent() Instance Public methods

auth_cram_md5

auth_cram_md5(user, secret) Instance Public methods

tv_nsec

time.tv_nsec â int Instance Public methods Returns the number of nanoseconds for time. t = Time.now #=> 2007-11-17 15:18:03 +0900 "%10.9f" % t.to_f #=> "1195280283.536151409" t.nsec #=> 536151406 The lowest digits of to_f and nsec are different because IEEE 754 double is not accurate enough to represent the exact number of nanoseconds since the Epoch. The more accurate value is returned by nsec.