Class: Archangel::Liquid::Drops::PageDrop
- Inherits:
-
Archangel::Liquid::Drop
- Object
- Liquid::Drop
- Archangel::Liquid::Drop
- Archangel::Liquid::Drops::PageDrop
- Defined in:
- lib/archangel/liquid/drops/page_drop.rb
Overview
Liquid drop for a Page
Instance Method Summary collapse
-
#id ⇒ String
Page id as a string.
-
#path ⇒ String
Page path with leading slash.
Methods inherited from Archangel::Liquid::Drop
#as_json, #attributes, attributes, #initialize, #inspect, #to_json
Constructor Details
This class inherits a constructor from Archangel::Liquid::Drop
Instance Method Details
#id ⇒ String
Page id as a string
19 20 21 |
# File 'lib/archangel/liquid/drops/page_drop.rb', line 19 def id object.id.to_s end |
#path ⇒ String
Page path with leading slash
27 28 29 |
# File 'lib/archangel/liquid/drops/page_drop.rb', line 27 def path "/#{object.path}" end |