Module: IceCube::Validations::Until
- Extended by:
- Deprecated
- Included in:
- IceCube::ValidatedRule
- Defined in:
- lib/ice_cube/validations/until.rb
Defined Under Namespace
Classes: Validation
Instance Method Summary (collapse)
- - (Object) until(time)
-
- (Object) until_time
accessor.
Methods included from Deprecated
Instance Method Details
- (Object) until(time)
13 14 15 16 17 18 |
# 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 |
- (Object) until_time
accessor
8 9 10 |
# File 'lib/ice_cube/validations/until.rb', line 8 def until_time @until end |