123456789_123456789_123456789_123456789_123456789_

Class: RSS::Maker::TrackBackModel::TrackBackAboutsBase::TrackBackAboutBase

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: RSS::Maker::Base
  • Object
Defined in: lib/rss/maker/trackback.rb

Constant Summary

::RSS::Maker::Base - Inherited

NEED_INITIALIZE_VARIABLES, OTHER_ELEMENTS

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

This class inherits a constructor from RSS::Maker::Base

Instance Attribute Details

#content (rw)

Alias for #value.

[ GitHub ]

  
# File 'lib/rss/maker/trackback.rb', line 25

alias_method(:content, :value)

#have_required_values?Boolean (readonly)

[ GitHub ]

  
# File 'lib/rss/maker/trackback.rb', line 28

def have_required_values?
  @value
end

#resource (rw)

Alias for #value.

[ GitHub ]

  
# File 'lib/rss/maker/trackback.rb', line 23

alias_method(:resource, :value)

#value (rw) Also known as: #resource, #content

[ GitHub ]

  
# File 'lib/rss/maker/trackback.rb', line 20

attr_accessor :value

Instance Method Details

#to_feed(feed, current)

[ GitHub ]

  
# File 'lib/rss/maker/trackback.rb', line 32

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