Class RSS::Maker::RSSBase
In: rss/maker/base.rb
Parent: Object

Methods

current_element   make   make   new  

Included Modules

Base

Attributes

channel  [R] 
encoding  [RW] 
image  [R] 
items  [R] 
rss_version  [R] 
standalone  [RW] 
textinput  [R] 
version  [RW] 
xml_stylesheets  [R] 

Public Class methods

[Source]

# File rss/maker/base.rb, line 101
        def make(&block)
          new.make(&block)
        end

[Source]

# File rss/maker/base.rb, line 111
      def initialize(rss_version)
        super(self)
        @rss_version = rss_version
        @version = "1.0"
        @encoding = "UTF-8"
        @standalone = nil
        @xml_stylesheets = make_xml_stylesheets
        @channel = make_channel
        @image = make_image
        @items = make_items
        @textinput = make_textinput
      end

Public Instance methods

[Source]

# File rss/maker/base.rb, line 129
      def current_element(rss)
        rss
      end

[Source]

# File rss/maker/base.rb, line 124
      def make(&block)
        block.call(self) if block
        to_rss
      end

[Validate]