You can always open up the expert-irb.rb sample included with the shoes download and create a shoes app in there, poke around it's objects. Ruby provides really great reflection support. :)

Shoes.app { $el = edit_line }
$el.class.superclass

Should tell you el's superclass, or $el.class for it's class, or $el.methods for it's methods... there really isn't much more to ruby objects than their methods and ancestors. Oh yeah, $el.class.ancestors for an array of them!

This is what I use to find out fiddly bits of undocumented goodness. :)

Probably wouldn't be all that hard to make a shoes app that reflects on itself to inspect widgets and objects!

Reply via email to