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
Class Method Summary
::RSS::Maker::Base - Inherited
::RSS::Utils::InheritedReader - Extended
Instance Attribute Summary
- #about rw
- #image_size (also: #size) rw
-
#size
rw
Alias for #image_size.
- #have_required_values? ⇒ Boolean readonly
::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
#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.
# 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