The default WxRuby interface has lots and lots of methods like
* get_position() * set_size(a_size) * is_checked()
and so on. Methods that retrieve set, or query attributes of an object are more normally in Ruby called simply by the attribute name:
* position() * size = a_size * checked?
This extension creates an alias for every WxRuby instance method that begins with get_, set_ or is_. Note that if you are calling a ‘setter’ method on self, you must explicitly send the message to self:
# set's self size to be 100px by 100px self.size = Wx::Size.new(100, 100) # only sets the value of a local variable 'size' size = Wx::Size.new