new(name) Class Public methods
message(there, str) Instance Public methods
new(server, there) Class Public methods
listen(str) Instance Public methods
say(str) Instance Public methods
new() Class Public methods
add_member(there) Instance Public methods
distribute(there, str) Instance Public methods
toggle() Instance Public methods def create_self(keys) if keys and keys != None tk_call_without_enc('checkbutton', @path, *hash_kv(keys, true)) else tk_call_without_enc('checkbutton', @path) end end private :create_self
Class.new(super_class=Object) â a_classClass.new(super_class=Object) { |mod| ... } â a_class Class Public methods Creates a new anonymous (unnamed) class with the given superclass (or Object if no parameter is given). You can give a class a name by assigning the class object to a constant. If a block is given, it is passed the class object, and the block is evaluated in the context of this class using class_eval. fred = Class.new do def meth1 "hello" end de
Page 115 of 11844