lib/vissen/input/subscription.rb in vissen-input-0.2.2 vs lib/vissen/input/subscription.rb in vissen-input-0.3.0

- old
+ new

@@ -13,18 +13,21 @@ # @return [Integer] the subscription priority. attr_reader :priority # @!method match?(message) - # This method is forwarded to `Message#match?`. + # This method is forwarded to `Matcher#match?`. # + # @param message (see Matcher#match?) # @return [true, false] (see Matcher#match?). def_delegator :@matcher, :match?, :match? + def_delegator :@matcher, :match, :match + # @!method handle(message) # Calls the registered handler with the given message. # - # @return (see Matcher#match?) + # @param message [Message] the message that the subscriber should handle. def_delegator :@handler, :call, :handle # @param matcher [#match?] the matcher to use when filtering messages. # @param handler [#call] the target of the subscription. # @param priority [Integer] the priority of the subscription relative