Class: IceT::Rule::Daily
- Inherits:
-
Base
- Object
- Base
- IceT::Rule::Daily
show all
- Defined in:
- lib/ice_t/rule/daily.rb
Instance Attribute Summary
Attributes inherited from Base
#at, #interval
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
<=>, #<=>, #initialize, #occurrences
Class Method Details
.to_i ⇒ Object
5
|
# File 'lib/ice_t/rule/daily.rb', line 5
def to_i; 1.day.to_i end
|
.unit ⇒ Object
6
|
# File 'lib/ice_t/rule/daily.rb', line 6
def unit; :days end
|
Instance Method Details
#to_s ⇒ Object
9
10
11
12
13
|
# File 'lib/ice_t/rule/daily.rb', line 9
def to_s
word = (@interval.eql?(2))? 'zweiten' : @interval
"jeden #{word} tag"
end
|