class Shoulda::Matchers::ActiveModel::NumericalityMatchers::NumericTypeMatcher

@private

Public Class Methods

new() click to toggle source
# File lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb, line 7
def initialize
  raise NotImplementedError
end

Public Instance Methods

allowed_type() click to toggle source
# File lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb, line 20
def allowed_type
  raise NotImplementedError
end
diff_to_compare() click to toggle source
# File lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb, line 24
def diff_to_compare
  raise NotImplementedError
end
failure_message() click to toggle source
# File lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb, line 28
def failure_message
  @disallow_value_matcher.failure_message
end
Also aliased as: failure_message_for_should
failure_message_for_should()
Alias for: failure_message
failure_message_for_should_not()
failure_message_when_negated() click to toggle source
# File lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb, line 33
def failure_message_when_negated
  @disallow_value_matcher.failure_message_when_negated
end
matches?(subject) click to toggle source
# File lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb, line 11
def matches?(subject)
  @disallow_value_matcher.matches?(subject)
end
with_message(message) click to toggle source
# File lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb, line 15
def with_message(message)
  @disallow_value_matcher.with_message(message)
  self
end