Class: When::V::Event::Enumerator::Step
- Inherits:
-
Object
- Object
- When::V::Event::Enumerator::Step
- Defined in:
- lib/when_exe/icalendar.rb
Overview
多重繰り返しの現在状態
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
Instance Method Summary collapse
- #_current_date ⇒ Object
- #_inc ⇒ Object
- #_previuos_date ⇒ Object
-
#initialize(date) ⇒ Step
constructor
A new instance of Step.
Constructor Details
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
1328 1329 1330 |
# File 'lib/when_exe/icalendar.rb', line 1328 def date @date end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
1327 1328 1329 |
# File 'lib/when_exe/icalendar.rb', line 1327 def index @index end |
Instance Method Details
#_current_date ⇒ Object
1331 1332 1333 |
# File 'lib/when_exe/icalendar.rb', line 1331 def _current_date return @date[@index] end |
#_inc ⇒ Object
1341 1342 1343 1344 |
# File 'lib/when_exe/icalendar.rb', line 1341 def _inc @index += 1 return self end |
#_previuos_date ⇒ Object
1336 1337 1338 |
# File 'lib/when_exe/icalendar.rb', line 1336 def _previuos_date return @date[@index-1] end |