Class: Sqreen::Graft::HookSpot
- Inherits:
-
Module
- Object
- Module
- Sqreen::Graft::HookSpot
- Defined in:
- lib/sqreen/graft/hook_point.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key) ⇒ HookSpot
constructor
A new instance of HookSpot.
- #inspect ⇒ Object
Constructor Details
#initialize(key) ⇒ HookSpot
Returns a new instance of HookSpot.
14 15 16 |
# File 'lib/sqreen/graft/hook_point.rb', line 14 def initialize(key) @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
18 19 20 |
# File 'lib/sqreen/graft/hook_point.rb', line 18 def key @key end |
Instance Method Details
#inspect ⇒ Object
20 21 22 |
# File 'lib/sqreen/graft/hook_point.rb', line 20 def inspect "#<#{self.class.name}: #{@key.inspect}>" end |