Class RSS::Rss::Channel::Item::Category
In: rss/0.9.rb
Parent: Element

Methods

new   to_s  

Included Modules

RSS09

Public Class methods

[Source]

# File rss/0.9.rb, line 449
          def initialize(domain=nil, content=nil)
            super()
            @domain = domain
            @content = content
          end

Public Instance methods

[Source]

# File rss/0.9.rb, line 455
          def to_s(convert=true, indent=calc_indent)
            if @domain
              rv = %Q!<category domain="#{h @domain}">!
              rv << %Q!#{h @content}</category>!
              rv = @converter.convert(rv) if convert and @converter
              rv
            else
              ''
            end
          end

[Validate]