Exception: Finalist::OverrideFinalMethodError
- Inherits:
-
StandardError
- Object
- StandardError
- Finalist::OverrideFinalMethodError
- Defined in:
- lib/finalist.rb
Instance Attribute Summary collapse
-
#detect_type ⇒ Object
readonly
Returns the value of attribute detect_type.
-
#origin_class ⇒ Object
readonly
Returns the value of attribute origin_class.
-
#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(message, klass, origin, meth, detect_type) ⇒ OverrideFinalMethodError
constructor
A new instance of OverrideFinalMethodError.
Constructor Details
#initialize(message, klass, origin, meth, detect_type) ⇒ OverrideFinalMethodError
Returns a new instance of OverrideFinalMethodError.
28 29 30 31 32 33 34 |
# File 'lib/finalist.rb', line 28 def initialize(, klass, origin, meth, detect_type) super() @override_class = klass @origin_class = origin @unbound_method = meth @detect_type = detect_type # for debug end |
Instance Attribute Details
#detect_type ⇒ Object (readonly)
Returns the value of attribute detect_type.
26 27 28 |
# File 'lib/finalist.rb', line 26 def detect_type @detect_type end |
#origin_class ⇒ Object (readonly)
Returns the value of attribute origin_class.
26 27 28 |
# File 'lib/finalist.rb', line 26 def origin_class @origin_class end |
#override_class ⇒ Object (readonly)
Returns the value of attribute override_class.
26 27 28 |
# File 'lib/finalist.rb', line 26 def override_class @override_class end |
#unbound_method ⇒ Object (readonly)
Returns the value of attribute unbound_method.
26 27 28 |
# File 'lib/finalist.rb', line 26 def unbound_method @unbound_method end |