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)
  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
  (arr = @validations[:until]) && (val = arr[0]) && val.time
end