Exception: Overrider::NoSuperMethodError
- Inherits:
-
StandardError
- Object
- StandardError
- Overrider::NoSuperMethodError
- Defined in:
- lib/overrider.rb
Instance Attribute Summary collapse
-
#override_class ⇒ Object
readonly
Returns the value of attribute override_class.
-
#unbound_method ⇒ Object
readonly
Returns the value of attribute unbound_method.
Instance Method Summary collapse
-
#initialize(klass, method, backtrace = nil) ⇒ NoSuperMethodError
constructor
A new instance of NoSuperMethodError.
Constructor Details
#initialize(klass, method, backtrace = nil) ⇒ NoSuperMethodError
9 10 11 12 13 14 |
# File 'lib/overrider.rb', line 9 def initialize(klass, method, backtrace = nil) super("`#{method.owner}##{method.name}` requires super method.") @override_class = klass @unbound_method = method set_backtrace(backtrace) if backtrace end |
Instance Attribute Details
#override_class ⇒ Object (readonly)
Returns the value of attribute override_class.
7 8 9 |
# File 'lib/overrider.rb', line 7 def override_class @override_class end |
#unbound_method ⇒ Object (readonly)
Returns the value of attribute unbound_method.
7 8 9 |
# File 'lib/overrider.rb', line 7 def unbound_method @unbound_method end |