RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Glib-Eventable

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

Instead of writing:


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

This allows you to write:


class Window < Gtk::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.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in