Class: Dugway::Drops::PagesDrop
- Defined in:
- lib/dugway/liquid/drops/pages_drop.rb
Instance Attribute Summary
Attributes inherited from BaseDrop
Instance Method Summary collapse
Methods inherited from BaseDrop
#before_method, #context=, #error, #errors, #initialize, #method_missing, #store, #theme
Constructor Details
This class inherits a constructor from Dugway::Drops::BaseDrop
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Dugway::Drops::BaseDrop
Instance Method Details
#all ⇒ Object
4 5 6 |
# File 'lib/dugway/liquid/drops/pages_drop.rb', line 4 def all @all ||= source.select { |page| page['category'] == 'custom' } end |
#cart ⇒ Object
8 9 10 |
# File 'lib/dugway/liquid/drops/pages_drop.rb', line 8 def cart @cart ||= source.find { |page| page['permalink'] == 'cart' } end |