class StrongerParameters::ComparisonConstraints

Attributes

limit[R]

Public Class Methods

new(limit) click to toggle source
# File lib/stronger_parameters/constraints/comparison_constraints.rb, line 8
def initialize(limit)
  @limit = limit
end

Public Instance Methods

==(other) click to toggle source
Calls superclass method StrongerParameters::Constraint#==
# File lib/stronger_parameters/constraints/comparison_constraints.rb, line 16
def ==(other)
  super && limit == other.limit
end
value(*) click to toggle source
# File lib/stronger_parameters/constraints/comparison_constraints.rb, line 12
def value(*)
  raise NotImplementedError
end