class StrongerParameters::Constraint
Public Instance Methods
&(other)
click to toggle source
# File lib/stronger_parameters/constraint.rb, line 14 def &(other) AndConstraint.new(self, other) end
==(other)
click to toggle source
# File lib/stronger_parameters/constraint.rb, line 18 def ==(other) self.class == other.class end
required()
click to toggle source
# File lib/stronger_parameters/constraint.rb, line 22 def required RequiredConstraint.new(self) end
required?()
click to toggle source
# File lib/stronger_parameters/constraint.rb, line 26 def required? false end
value(v)
click to toggle source
# File lib/stronger_parameters/constraint.rb, line 6 def value(v) v end
|(other)
click to toggle source
# File lib/stronger_parameters/constraint.rb, line 10 def |(other) OrConstraint.new(self, other) end