module Validate::Compare
Public Instance Methods
attributes(**attributes)
click to toggle source
# File lib/validate/compare.rb, line 70 def attributes(**attributes) WithAttributes.new(attributes) end
to(value = nil, &value_block)
click to toggle source
# File lib/validate/compare.rb, line 74 def to(value = nil, &value_block) value_block ||= value.is_a?(Proc) ? value : proc { value } ToValue.new(value_block) end