method

obj.method(sym) â method Instance Public methods Looks up the named method as a receiver in obj, returning a Method object (or raising NameError). The Method object acts as a closure in obj's object instance, so instance variables and the value of self remain available. class Demo def initialize(n) @iv = n end def hello() "Hello, @iv = #{@iv}" end end k = Demo.new(99) m = k.method(:hello) m.call #=> "Hello, @iv = 99" l = Demo.new('Fred') m = l.method("hel

method_missing

method_missing(id, *args) Instance Public methods Also aliased as: __method_missing_alias_for_MultiTkIp__

methods

obj.methods(all=true) â array Instance Public methods Returns a list of the names of public and protected methods of obj. This will include all the methods accessible in obj's ancestors. If the all parameter is set to false, only those methods in the receiver will be listed. class Klass def klass_method() end end k = Klass.new k.methods[0..9] #=> [:klass_method, :nil?, :===, # :==~, :!, :eql? # :hash, :<=>, :class, :si

mkTextConfig

mkTextConfig(w,x,y,option,value,color) Instance Public methods Next, create some items that allow the text's anchor position to be edited.

mkboard

mkboard() Instance Public methods

mkdir

mkdir() Instance Public methods Create the DIR, if they do not already exist. ruby -run -e mkdir -- [OPTION] DIR -p no error if existing, make parent directories as needed -v verbose

mkmatrix

mkmatrix(rows, cols) Instance Public methods

mkmf

mkmf() Instance Public methods Create makefile using mkmf. ruby -run -e mkmf -- [OPTION] EXTNAME [OPTION] -d ARGS run dir_config -h ARGS run have_header -l ARGS run have_library -f ARGS run have_func -v ARGS run have_var -t ARGS run have_type -m ARGS run have_macro -c ARGS run have_const --vendor install to vendor_ruby

mkpieces

mkpieces() Instance Public methods

mmult

mmult(rows, cols, m1, m2) Instance Public methods