Module: GLib::MetaSignal
- Defined in:
- glib2/lib/glib2.rb
Class Method Summary collapse
Class Method Details
.signal_callback(klass, name) ⇒ Object
125 126 127 128 129 130 |
# File 'glib2/lib/glib2.rb', line 125 def signal_callback(klass, name) lambda do |instance, *args| method_name = "#{SIGNAL_HANDLER_PREFIX}#{name}" klass.instance_method(method_name).bind(instance).call(*args) end end |