Class: Lifer::Builder::HTML::FromLiquid::Drops::AuthorDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Lifer::Builder::HTML::FromLiquid::Drops::AuthorDrop
- Defined in:
- lib/lifer/builder/html/from_liquid/drops/authors_drop.rb
Instance Attribute Summary collapse
-
#lifer_author ⇒ Object
Returns the value of attribute lifer_author.
Instance Method Summary collapse
- #avatar ⇒ Object
- #entries ⇒ Object
-
#initialize(lifer_author) ⇒ AuthorDrop
constructor
A new instance of AuthorDrop.
- #name ⇒ Object
- #url ⇒ Object
Constructor Details
#initialize(lifer_author) ⇒ AuthorDrop
Returns a new instance of AuthorDrop.
5 |
# File 'lib/lifer/builder/html/from_liquid/drops/authors_drop.rb', line 5 def initialize() = (@lifer_author = ) |
Instance Attribute Details
#lifer_author ⇒ Object
Returns the value of attribute lifer_author.
3 4 5 |
# File 'lib/lifer/builder/html/from_liquid/drops/authors_drop.rb', line 3 def @lifer_author end |
Instance Method Details
#avatar ⇒ Object
7 |
# File 'lib/lifer/builder/html/from_liquid/drops/authors_drop.rb', line 7 def avatar = (@avatar ||= .avatar) |
#entries ⇒ Object
13 14 15 16 17 |
# File 'lib/lifer/builder/html/from_liquid/drops/authors_drop.rb', line 13 def entries @entries ||= .entries.map { EntryDrop.new _1, collection: _1.collection, tags: _1. } end |
#name ⇒ Object
9 |
# File 'lib/lifer/builder/html/from_liquid/drops/authors_drop.rb', line 9 def name = (@name ||= .name) |
#url ⇒ Object
11 |
# File 'lib/lifer/builder/html/from_liquid/drops/authors_drop.rb', line 11 def url = (@url ||= .url) |