# File lib/dbus/matchrule.rb, line 86 def match(msg) if @type if {Message::SIGNAL => "signal", Message::METHOD_CALL => "method_call", Message::METHOD_RETURN => "method_return", Message::ERROR => "error"}[msg.message_type] != @type return false end end return false if @interface and @interface != msg.interface return false if @member and @member != msg.member return false if @path and @path != msg.path true end