Class: RSS::Maker::RSSBase
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
self,
TaxonomyTopicModel,
Base
|
|
Inherits: |
RSS::Maker::Base
|
Defined in: | lib/rss/maker/base.rb, lib/rss/maker/taxonomy.rb |
Constant Summary
Base - Inherited
Class Method Summary
- .make(*args, &block)
- .new(feed_version) ⇒ RSSBase constructor
Base - Inherited
::RSS::Utils::InheritedReader - Extended
Instance Attribute Summary
- #encoding rw
- #standalone rw
- #version rw
- #feed_version (also: #rss_version) readonly
-
#rss_version
readonly
Alias for #feed_version.
Base - Inherited
Instance Method Summary
Base - Inherited
Constructor Details
.new(feed_version) ⇒ RSSBase
# File 'lib/rss/maker/base.rb', line 428
def initialize(feed_version) super(self) @feed_type = nil @feed_subtype = nil @feed_version = feed_version @version = "1.0" @encoding = "UTF-8" @standalone = nil end
Class Method Details
.make(*args, &block)
[ GitHub ]# File 'lib/rss/maker/base.rb', line 402
def make(*args, &block) new(*args).make(&block) end
Instance Attribute Details
#encoding (rw)
[ GitHub ]# File 'lib/rss/maker/base.rb', line 426
attr_accessor :version, :encoding, :standalone
#feed_version (readonly) Also known as: #rss_version
[ GitHub ]# File 'lib/rss/maker/base.rb', line 424
attr_reader :feed_version
#rss_version (readonly)
Alias for #feed_version.
# File 'lib/rss/maker/base.rb', line 425
alias_method(:rss_version, :feed_version)
#standalone (rw)
[ GitHub ]#version (rw)
[ GitHub ]# File 'lib/rss/maker/base.rb', line 426
attr_accessor :version, :encoding, :standalone
Instance Method Details
#make {|_self| ... }
# File 'lib/rss/maker/base.rb', line 438
def make yield(self) to_feed end
#make_xml_stylesheets (private)
[ GitHub ]# File 'lib/rss/maker/base.rb', line 454
def make_xml_stylesheets XMLStyleSheets.new(self) end
#to_feed
[ GitHub ]# File 'lib/rss/maker/base.rb', line 443
def to_feed feed = make_feed setup_xml_stylesheets(feed) setup_elements(feed) setup_other_elements(feed) feed.validate feed end