Class: CollectionDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- CollectionDrop
- Includes:
- Enumerable
- Defined in:
- app/drops/collection_drop.rb
Overview
This drop is the return type of many methods in other drops. These methods can be used to fetch required data from the returned data accordingly. Like to get the number of comments from a method returning CollectionDrop you can use #count or #size method.
Instance Method Summary collapse
- #blank? ⇒ Boolean
- #count ⇒ Integer
- #each(&block) ⇒ Array
- #first ⇒ Object
- #last ⇒ Object
- #latest ⇒ Object
-
#size ⇒ Integer
Alias of count method.
- #slice(offset, length) ⇒ Array
Instance Method Details
#blank? ⇒ Boolean
#count ⇒ Integer
#each(&block) ⇒ Array
#first ⇒ Object
#last ⇒ Object
#latest ⇒ Object
#size ⇒ Integer
Alias of count method