Class: Graft::HookModule
- Inherits:
-
Module
- Object
- Module
- Graft::HookModule
- Defined in:
- lib/graft/hook_point.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key) ⇒ HookModule
constructor
A new instance of HookModule.
- #inspect ⇒ Object
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
#key ⇒ Object (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
#inspect ⇒ Object
15 16 17 |
# File 'lib/graft/hook_point.rb', line 15 def inspect "#<#{self.class.name}: #{@key.inspect}>" end |