Skip to content

Commit d00d049

Browse files
committed
Documentation comments
1 parent a294271 commit d00d049

5 files changed

Lines changed: 13 additions & 10 deletions

File tree

lib/ice_cube/validations/count.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module IceCube
22

33
module Validations::Count
44

5-
# accessor
5+
# Value reader for limit
66
def occurrence_count
77
@count
88
end

lib/ice_cube/validations/daily_interval.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ def interval(interval)
1010
self
1111
end
1212

13-
# A validation for checking to make sure that a time
14-
# is inside of a certain DailyInterval
1513
class Validation
1614

1715
attr_reader :interval

lib/ice_cube/validations/lock.rb

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
module IceCube
22

3-
# A validation mixin that will lock the +type field to
4-
# +value or +schedule.start_time.send(type) if value is nil
5-
3+
# This validation mixin is used by the various "fixed-time" (e.g. day,
4+
# day_of_month, hour_of_day) Validation and ScheduleLock::Validation modules.
5+
# It is not a standalone rule validation like the others.
6+
#
7+
# Given the including Validation's defined +type+ field, it will lock
8+
# to the specified +value+ or else the corresponding time unit from the
9+
# schedule's start_time
10+
#
611
module Validations::Lock
712

813
INTERVALS = {:min => 60, :sec => 60, :hour => 24, :month => 12, :wday => 7}

lib/ice_cube/validations/schedule_lock.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ module IceCube
22

33
module Validations::ScheduleLock
44

5-
# Lock the given times down the schedule's start_time for that position
5+
# Lock the given time units to the units from schedule's +start_time+
66
# These locks are all clobberable by other rules of the same #type
7-
# using clobber_base_validation
7+
# using +clobber_base_validation+
8+
#
89
def schedule_lock(*types)
910
types.each do |type|
1011
validations_for(:"base_#{type}") << Validation.new(type)
1112
end
1213
end
1314

14-
# A validation used for locking time into a certain value
1515
class Validation
1616

1717
include Validations::Lock

lib/ice_cube/validations/until.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Validations::Until
44

55
extend Deprecated
66

7-
# accessor
7+
# Value reader for limit
88
def until_time
99
@until
1010
end

0 commit comments

Comments
 (0)