Class: Lifer::Builder::HTML::FromLiquid::Drops::AuthorsDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Lifer::Builder::HTML::FromLiquid::Drops::AuthorsDrop
- Defined in:
- lib/lifer/builder/html/from_liquid/drops/authors_drop.rb
Instance Attribute Summary collapse
-
#authors ⇒ Object
Returns the value of attribute authors.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(lifer_authors) ⇒ AuthorsDrop
constructor
A new instance of AuthorsDrop.
- #to_a ⇒ Object
Constructor Details
#initialize(lifer_authors) ⇒ AuthorsDrop
Returns a new instance of AuthorsDrop.
23 24 25 |
# File 'lib/lifer/builder/html/from_liquid/drops/authors_drop.rb', line 23 def initialize() @authors = .map { AuthorDrop.new _1 } end |
Instance Attribute Details
#authors ⇒ Object
Returns the value of attribute authors.
21 22 23 |
# File 'lib/lifer/builder/html/from_liquid/drops/authors_drop.rb', line 21 def @authors end |
Instance Method Details
#each(&block) ⇒ Object
27 28 29 |
# File 'lib/lifer/builder/html/from_liquid/drops/authors_drop.rb', line 27 def each(&block) .each(&block) end |
#to_a ⇒ Object
31 |
# File 'lib/lifer/builder/html/from_liquid/drops/authors_drop.rb', line 31 def to_a = @authors |