Class: When::V::Event::Enumerator::Logic::Hour
- Inherits:
-
When::V::Event::Enumerator::Logic
- Object
- When::V::Event::Enumerator::Logic
- When::V::Event::Enumerator::Logic::Hour
- Defined in:
- lib/when_exe/icalendar.rb
Overview
BYHOURを実装
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from When::V::Event::Enumerator::Logic
#by_part, #cash, #freq_index, #list
Instance Method Summary collapse
-
#initialize(by_part, list, lower = nil, upper = nil, leap = false) ⇒ Hour
constructor
A new instance of Hour.
Methods inherited from When::V::Event::Enumerator::Logic
Constructor Details
#initialize(by_part, list, lower = nil, upper = nil, leap = false) ⇒ Hour
Returns a new instance of Hour.
1597 1598 1599 1600 1601 1602 1603 1604 |
# File 'lib/when_exe/icalendar.rb', line 1597 def initialize(by_part, list, lower=nil, upper=nil, leap=false) super(by_part, list) if lower @list.each do |v| raise ArgumentError, "#{by_part} out of range: #{v}" unless lower <= v && v < upper end end end |