Class: Kinda::Hookable::HookedMethod
- Inherits:
-
Object
- Object
- Kinda::Hookable::HookedMethod
- Defined in:
- lib/hookable.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#method_patched ⇒ Object
Returns the value of attribute method_patched.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #hooks ⇒ Object
-
#initialize(klass, name) ⇒ HookedMethod
constructor
A new instance of HookedMethod.
Constructor Details
#initialize(klass, name) ⇒ HookedMethod
Returns a new instance of HookedMethod.
131 132 133 134 |
# File 'lib/hookable.rb', line 131 def initialize(klass, name) @klass = klass @name = name end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
128 129 130 |
# File 'lib/hookable.rb', line 128 def klass @klass end |
#method_patched ⇒ Object
Returns the value of attribute method_patched.
129 130 131 |
# File 'lib/hookable.rb', line 129 def method_patched @method_patched end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
128 129 130 |
# File 'lib/hookable.rb', line 128 def name @name end |
Instance Method Details
#hooks ⇒ Object
136 137 138 |
# File 'lib/hookable.rb', line 136 def hooks @hooks ||= Hash.new { |hash, kind| hash[kind] = [] } end |