Class Irmo::Object
In: rbirmo.c
Parent: Object
Methods
==    ===    destroy    get    get_class    id    initialize    set    to_i    watch    watch_destroy    world   
Public Instance methods
initialize()
id(VALUE self)

Get an object’s unique World ID

to_i(VALUE self)

Get an object’s unique World ID

get_class(VALUE self)

Get the Irmo Class of an object

watch(int argc, VALUE *argv, VALUE self)

Watch for changes to an object’s variables. Usage:

  # Watch for all changes to an object

  obj.watch { |var| ... }
  # Watch for changes to a particular variable

  obj.watch('varname') { ... }

Returns a Callback object representing the callback.

watch_destroy(VALUE self)

Watch for this object being destroyed from the World

  obj.watch_destroy { ... }

Returns a Callback object representing the callback.

world(VALUE self)

Get the World this object belongs to

destroy(VALUE self)

Destroy this object

set(VALUE self, VALUE var_name, VALUE value)

Set the value of a variable

  # set the value of 'x' to 58

  obj.set('x', 58)
get(VALUE self, VALUE var_name)

Get the value of an object variable

  # get the value of variable 'x'

  x = obj.get('x')
==(p1)
===(p1)