Sha256: be13a1d39a68179948380aae00dcf4ef4f0c982e7b2ce974a3bd3b04a8b767cf

Contents?: true

Size: 215 Bytes

Versions: 5

Compression:

Stored size: 215 Bytes

Contents

module Tamashii
  class Hook
    attr_reader :env

    def initialize(env)
      @env = env
    end

    def call(pkt)
      raise NotImplementedError.new("Hook should implement the #call method")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tamashii-common-0.1.6 lib/tamashii/hook.rb
tamashii-common-0.1.5 lib/tamashii/hook.rb
tamashii-common-0.1.4 lib/tamashii/hook.rb
tamashii-common-0.1.3 lib/tamashii/hook.rb
tamashii-common-0.1.2 lib/tamashii/hook.rb