Class: Taza::Site::PageLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/taza/site.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(site_module, pages_path) ⇒ PageLoader

Returns a new instance of PageLoader.



205
206
207
208
209
210
211
# File 'lib/taza/site.rb', line 205

def initialize site_module, pages_path
  @site_module = site_module
  @pages_path = pages_path
  @page_methods = Module.new
  @page_names = []
  define_site_pages
end

Instance Attribute Details

#page_methodsObject (readonly)

Returns the value of attribute page_methods.



204
205
206
# File 'lib/taza/site.rb', line 204

def page_methods
  @page_methods
end

#page_namesObject (readonly)

Returns the value of attribute page_names.



204
205
206
# File 'lib/taza/site.rb', line 204

def page_names
  @page_names
end