Class: RSS::Maker::ChannelBase::SkipHoursBase
- Inherits:
-
Object
- Object
- RSS::Maker::ChannelBase::SkipHoursBase
- Includes:
- Base
- Defined in:
- lib/rss/maker/base.rb
Defined Under Namespace
Classes: HourBase
Instance Method Summary collapse
Methods included from Base
append_features, #have_required_values?, #initialize
Instance Method Details
#current_element(rss) ⇒ Object
330 331 332 |
# File 'lib/rss/maker/base.rb', line 330 def current_element(rss) rss.channel.skipHours end |
#new_hour ⇒ Object
320 321 322 323 324 325 326 327 328 |
# File 'lib/rss/maker/base.rb', line 320 def new_hour hour = self.class::Hour.new(@maker) @hours << hour if block_given? yield hour else hour end end |