Gtk-ruby doc (tutor)

Hi!

I’ve succesfully set up and used gtk (under linux) and just curious,
that is there any docs with ruby.
My current problem is defining checkboxgroups.

I can write some easier stuff, but find some inconsistencies in the
method names. Is there a guide which is ruby specific.

(eg: get_foo is sometimes renamed to foo(). Eg in a combo, combo.entry
exists, but combo.get_entry not. Gtk has get_entry. Elsewhere gtk and
ruby also has get_text. The best way is to make an alias to these
"expected" method names.

Gergo
±[Kontra, Gergely @ Budapest University of Technology and Economics]-+

    Email: kgergely@mcl.hu,  kgergely@turul.eet.bme.hu          |

URL: turul.eet.bme.hu/~kgergely Mobile: (+36 20) 356 9656 |
±------“Olyan langesz vagyok, hogy poroltoval kellene jarnom!”-------+
.
Magyar php mirror es magyar php dokumentacio: http://hu.php.net

[…]

(eg: get_foo is sometimes renamed to foo(). Eg in a combo, combo.entry
exists, but combo.get_entry not. Gtk has get_entry. Elsewhere gtk and
ruby also has get_text. The best way is to make an alias to these
"expected" method names.

I think the reason is that Ruby uses #foo as a getter and #foo= as a
setter, rather than #get_foo and #set_foo as in other languages.

so it’s natural for people who used Ruby first to use #foo and
#foo=. However, it’s natural to use #get_foo and #set_foo if you have
been using Gtk+ and just learning ruby-gtk.

IMHO, ruby’nized method should stay as core, and {get,set}'nized
method should moved to a module which just define method aliases.

It’s still open issue, i assume. ruby-gnome2 group is open for
comments.

best regards,

···

At Wed, 3 Jul 2002 19:10:30 +0900, Kontra, Gergely kgergely@mlabdial.hit.bme.hu wrote:

           yashi