Class: RSS::Maker::TrackBackModel::TrackBackAboutsBase::TrackBackAboutBase
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
self,
::RSS::Maker::Base
|
|
Inherits: |
RSS::Maker::Base
|
Defined in: | lib/rss/maker/trackback.rb |
Constant Summary
::RSS::Maker::Base - Inherited
Class Method Summary
::RSS::Maker::Base - Inherited
::RSS::Utils::InheritedReader - Extended
Instance Attribute Summary
-
#content
rw
Alias for #value.
- #have_required_values? ⇒ Boolean readonly
-
#resource
rw
Alias for #value.
- #value (also: #resource, #content) rw
::RSS::Maker::Base - Inherited
Instance Method Summary
::RSS::Maker::Base - Inherited
Constructor Details
This class inherits a constructor from RSS::Maker::Base
Instance Attribute Details
#content (rw)
Alias for #value.
# File 'lib/rss/maker/trackback.rb', line 26
alias_method(:content, :value)
#have_required_values? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/rss/maker/trackback.rb', line 29
def have_required_values? @value end
#resource (rw)
Alias for #value.
# File 'lib/rss/maker/trackback.rb', line 24
alias_method(:resource, :value)
#value (rw) Also known as: #resource, #content
[ GitHub ]# File 'lib/rss/maker/trackback.rb', line 21
attr_accessor :value
Instance Method Details
#to_feed(feed, current)
[ GitHub ]# File 'lib/rss/maker/trackback.rb', line 33
def to_feed(feed, current) if current.respond_to?(:trackback_abouts) and have_required_values? about = current.class::TrackBackAbout.new setup_values(about) setup_other_elements(about) current.trackback_abouts << about end end