Class: RSS::Maker::ChannelBase::CategoriesBase

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/rss/maker/base.rb

Defined Under Namespace

Classes: CategoryBase

Instance Method Summary collapse

Methods included from Base

append_features, #have_required_values?, #initialize

Instance Method Details

#new_categoryObject



368
369
370
371
372
373
374
375
376
# File 'lib/rss/maker/base.rb', line 368

def new_category
  category = self.class::Category.new(@maker)
  @categories << category
  if block_given?
    yield category
  else
    category
  end
end