json_creatable?

json_creatable?() Instance Public methods Returns true if this class can be used to create an instance from a serialised JSON string. The class has to implement a class method json_create that expects a hash as first parameter. The hash should include the required data.

allocate

class.allocate() â obj Instance Public methods Allocates space for a new object of class's class and does not call initialize on the new instance. The returned object must be an instance of class. klass = Class.new do def initialize(*args) @initialized = true end def initialized? @initialized || false end end klass.allocate.initialized? #=> false

new

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

toggle

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

distribute

distribute(there, str) Instance Public methods

add_member

add_member(there) Instance Public methods

new

new() Class Public methods

say

say(str) Instance Public methods

listen

listen(str) Instance Public methods

new

new(server, there) Class Public methods