Class: Strict::MethodReturnError

Inherits:
Error
  • Object
show all
Defined in:
lib/strict/method_return_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message_from(verifiable_method: verifiable_method, value: value))

  @verifiable_method = verifiable_method
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/strict/method_return_error.rb', line 5

def value
  @value
end

#verifiable_methodObject (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