Sha256: 72c189326e7b920903bc1b2bad1fddb486e3394576a38af109b99a534402c8ba

Contents?: true

Size: 311 Bytes

Versions: 2

Compression:

Stored size: 311 Bytes

Contents

module Pymn
  module ChainOfResponsibility
    module HasHandlers
      def add_handler(next_handler)
        if (@next_handler_in_chain)
          @next_handler_in_chain.add_handler(next_handler)
        else
          @next_handler_in_chain = next_handler
        end
        self
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pymn-0.0.2 lib/pymn/chain_of_responsibility/has_handlers.rb
pymn-0.0.1 lib/pymn/chain_of_responsibility/has_handlers.rb