Class: Locomotive::Liquid::Drops::Site

Inherits:
Base
  • Object
show all
Defined in:
lib/locomotive/liquid/drops/site.rb

Instance Attribute Summary

Attributes inherited from Base

#_source

Instance Method Summary collapse

Methods inherited from Base

#id, #initialize, liquify

Constructor Details

This class inherits a constructor from Locomotive::Liquid::Drops::Base

Instance Method Details

#indexObject



8
9
10
# File 'lib/locomotive/liquid/drops/site.rb', line 8

def index
  @index ||= self._source.pages.root.first
end

#pagesObject



12
13
14
# File 'lib/locomotive/liquid/drops/site.rb', line 12

def pages
  @pages ||= liquify(*self._source.pages)
end