module GObject module RubyStyle def method_missing(method, *args) if respond_to?("get_#{method}") return send("get_#{method}", *args) end if method.to_s =~ /(.*)=$/ && respond_to?("set_#{$1}") return send("set_#{$1}", *args) end super end def signal_connect(event, &block) GObject.signal_connect(self, event, &block) end end end