module IceCube::Validations::Until

Public Instance Methods

until(time) click to toggle source
# File lib/ice_cube/validations/until.rb, line 13
def until(time)
  time = TimeUtil.ensure_time(time, true)
  @until = time
  replace_validations_for(:until, time.nil? ? nil : [Validation.new(time)])
  self
end
until_time() click to toggle source

Value reader for limit

# File lib/ice_cube/validations/until.rb, line 8
def until_time
  @until
end