Class: Lifer::Builder::HTML::FromLiquid::Drops::AuthorsDrop

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
lib/lifer/builder/html/from_liquid/drops/authors_drop.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(lifer_authors)
  @authors = lifer_authors.map { AuthorDrop.new _1 }
end

Instance Attribute Details

#authorsObject

Returns the value of attribute authors.



21
22
23
# File 'lib/lifer/builder/html/from_liquid/drops/authors_drop.rb', line 21

def authors
  @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)
  authors.each(&block)
end

#to_aObject



31
# File 'lib/lifer/builder/html/from_liquid/drops/authors_drop.rb', line 31

def to_a = @authors