Class: Graft::HookModule

Inherits:
Module
  • Object
show all
Defined in:
lib/graft/hook_point.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ HookModule

Returns a new instance of HookModule.



7
8
9
10
11
# File 'lib/graft/hook_point.rb', line 7

def initialize(key)
  super()

  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



13
14
15
# File 'lib/graft/hook_point.rb', line 13

def key
  @key
end

Instance Method Details

#inspectObject



15
16
17
# File 'lib/graft/hook_point.rb', line 15

def inspect
  "#<#{self.class.name}: #{@key.inspect}>"
end