RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

Glib-Eventable

glib-eventable is a helper gem for ruby-gnome2 applications.

Instead of writing:


class Window def initialize
super
signal_connect('destroy') { Gtk.main_quit }
end
end


This allows you to write:


class Window event destroy: :on_destroy

def on_destroy
Gtk.main_quit
end
end


This allows you to create subclasses of Gtk objects in a more OOP style.

Comments

Post a Comment

Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!