lib/signal.rb in signal-0.2.1 vs lib/signal.rb in signal-0.2.2
- old
+ new
@@ -36,9 +36,9 @@
private
def emit_signal(type, event, *args)
listeners.each do |listener|
method_name = "#{type}_#{event}"
- listener.send(method_name, *args) if listener.respond_to?(method_name)
+ listener.send(method_name, *args) if listener.respond_to?(method_name, true)
end
end
end