Class: Strict::MethodReturnError
- Defined in:
- lib/strict/method_return_error.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
-
#verifiable_method ⇒ Object
readonly
Returns the value of attribute verifiable_method.
Instance Method Summary collapse
-
#initialize(verifiable_method:, value:) ⇒ MethodReturnError
constructor
A new instance of MethodReturnError.
Constructor Details
#initialize(verifiable_method:, value:) ⇒ MethodReturnError
Returns a new instance of MethodReturnError.
7 8 9 10 11 12 |
# File 'lib/strict/method_return_error.rb', line 7 def initialize(verifiable_method:, value:) super((verifiable_method: verifiable_method, value: value)) @verifiable_method = verifiable_method @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/strict/method_return_error.rb', line 5 def value @value end |
#verifiable_method ⇒ Object (readonly)
Returns the value of attribute verifiable_method.
5 6 7 |
# File 'lib/strict/method_return_error.rb', line 5 def verifiable_method @verifiable_method end |