Class: Toodledo::Repeat
- Inherits:
-
Object
- Object
- Toodledo::Repeat
- Defined in:
- lib/toodledo/repeat.rb
Constant Summary collapse
- NONE =
0
- WEEKLY =
1
- MONTHLY =
2
- YEARLY =
3
- DAILY =
4
- BIWEEKLY =
5
- BIMONTHLY =
6
- SEMIANNUALLY =
7
- QUARTERLY =
8
- WITH_PARENT =
9
- REPEAT_ARRAY =
[ NONE, WEEKLY, MONTHLY, YEARLY, DAILY, BIWEEKLY, BIMONTHLY, SEMIANNUALLY, QUARTERLY, WITH_PARENT ]
Class Method Summary collapse
Class Method Details
.each ⇒ Object
31 32 33 |
# File 'lib/toodledo/repeat.rb', line 31 def self.each REPEAT_ARRAY.each{|value| yield(value)} end |
.valid?(input) ⇒ Boolean
35 36 37 38 39 40 41 42 |
# File 'lib/toodledo/repeat.rb', line 35 def self.valid?(input) for repeat in REPEAT_ARRAY if (repeat == input) return true end end return false end |