class Moguro::Errors::ArgumentsTypeMismatchError
Public Class Methods
new(type_mismatch_error, klass, method)
click to toggle source
Calls superclass method
# File lib/moguro/errors.rb, line 40 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 59 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 51 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 47 def failure_title 'ArgumentsTypeError' end