class Antidote::ReturnTypeError

Public Class Methods

new(types) click to toggle source
# File lib/antidote/return_type_error.rb, line 3
def initialize(types)
  @actual_type, @expected_type, @method_name = types
end

Public Instance Methods

message() click to toggle source
# File lib/antidote/return_type_error.rb, line 7
def message
  "Expected `#{@method_name}` to return a #{@expected_type}, but it " \
  "returned a #{@actual_type} instead"
end