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

[...]

> (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,
--
               yashi