Sha256: 1b3d9825187215505050b1b0ecf4981aa5fab26d32a7cef5d659cee0b6ebdf23
Contents?: true
Size: 296 Bytes
Versions: 2
Compression:
Stored size: 296 Bytes
Contents
require 'pymn/chain_of_responsibility' class include Pymn::ChainOfResponsibility def initialize(supports_type) @supports_type = supports_type end def handle_message message, type message end responsibility (:handle_message) { |message, type| type == @supports_type } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pymn-0.0.2 | spec/fixtures/message_handler.rb |
pymn-0.0.1 | spec/fixtures/message_handler.rb |