123456789_123456789_123456789_123456789_123456789_

Class: RSS::Maker::ImageFaviconModel::ImageFaviconBase

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: RSS::Maker::Base
Defined in: lib/rss/maker/image.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

#about (rw)

[ GitHub ]

  
# File 'lib/rss/maker/image.rb', line 70

attr_accessor :about, :image_size

#have_required_values?Boolean (readonly)

[ GitHub ]

  
# File 'lib/rss/maker/image.rb', line 76

def have_required_values?
  @about and @image_size
end

#image_size (rw) Also known as: #size

[ GitHub ]

  
# File 'lib/rss/maker/image.rb', line 70

attr_accessor :about, :image_size

#size (rw)

Alias for #image_size.

[ GitHub ]

  
# File 'lib/rss/maker/image.rb', line 73

alias size image_size

Instance Method Details

#to_feed(feed, current)

[ GitHub ]

  
# File 'lib/rss/maker/image.rb', line 80

def to_feed(feed, current)
  if current.respond_to?(:image_favicon=) and have_required_values?
    favicon = current.class::ImageFavicon.new
    setup_values(favicon)
    setup_other_elements(favicon)
    current.image_favicon = favicon
  end
end