ValidationMatcher
@private
# File lib/shoulda/matchers/active_model/ensure_exclusion_of_matcher.rb, line 118 def description "ensure exclusion of #{@attribute} in #{inspect_message}" end
# File lib/shoulda/matchers/active_model/ensure_exclusion_of_matcher.rb, line 101 def in_array(array) @array = array self end
# File lib/shoulda/matchers/active_model/ensure_exclusion_of_matcher.rb, line 106 def in_range(range) @range = range @minimum = range.first @maximum = range.max self end
# File lib/shoulda/matchers/active_model/ensure_exclusion_of_matcher.rb, line 122 def matches?(subject) super(subject) if @range allows_lower_value && disallows_minimum_value && allows_higher_value && disallows_maximum_value elsif @array disallows_all_values_in_array? end end
Generated with the Darkfish Rdoc Generator 2.