Harbor Documentation

Harbor::Hooks::Map

Parent

Methods

Public Class Methods

new(target)

      # File lib/harbor/hooks.rb, line 22
22:       def initialize(target)
23:         @map = {}
24:         @target = target
25:       end

Public Instance Methods

[](method_name)

      # File lib/harbor/hooks.rb, line 31
31:       def [](method_name)
32:         @map[method_name] ||= Chain.new(@target, method_name)
33:       end

has_key?(method_name)

      # File lib/harbor/hooks.rb, line 27
27:       def has_key?(method_name)
28:         @map.has_key?(method_name)
29:       end