class Moguro::Errors::ReturnValueTypeMismatchError
Public Class Methods
new(type_mismatch_error, klass, method)
click to toggle source
Calls superclass method
# File lib/moguro/errors.rb, line 68 def initialize(type_mismatch_error, klass, method) @e = type_mismatch_error @klass = klass @method = method super(failure_message) end
Public Instance Methods
failure_location()
click to toggle source
# File lib/moguro/errors.rb, line 87 def failure_location <<~"LOCATION".chomp Value guarded in: #{@klass}::#{@method.name} At: #{@method.position} LOCATION end
failure_message()
click to toggle source
# File lib/moguro/errors.rb, line 79 def failure_message <<~"MESSAGE".chomp #{failure_title} => #{@e.failure_summary} #{@e.failure_detail} #{failure_location} MESSAGE end
failure_title()
click to toggle source
# File lib/moguro/errors.rb, line 75 def failure_title 'ReturnValueTypeError' end