Class: Estatic::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/estatic/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/estatic/configuration.rb', line 13

def initialize
  @chunk = 8
  @title = 'Estatic'
  @project_path = Dir.pwd
  @estatic_site_path = File.join(Dir.pwd, 'estatic_site')
  @categories = []
  @featured = nil
  @include_product_page = false
  @domain = @estatic_site_path
  @locals = []
end

Instance Attribute Details

#categoriesObject

Returns the value of attribute categories.



3
4
5
# File 'lib/estatic/configuration.rb', line 3

def categories
  @categories
end

#chunkObject

Returns the value of attribute chunk.



3
4
5
# File 'lib/estatic/configuration.rb', line 3

def chunk
  @chunk
end

#domainObject

Returns the value of attribute domain.



3
4
5
# File 'lib/estatic/configuration.rb', line 3

def domain
  @domain
end

#estatic_site_pathObject

Returns the value of attribute estatic_site_path.



3
4
5
# File 'lib/estatic/configuration.rb', line 3

def estatic_site_path
  @estatic_site_path
end

Returns the value of attribute featured.



3
4
5
# File 'lib/estatic/configuration.rb', line 3

def featured
  @featured
end

#include_product_pageObject

Returns the value of attribute include_product_page.



3
4
5
# File 'lib/estatic/configuration.rb', line 3

def include_product_page
  @include_product_page
end

#localsObject

Returns the value of attribute locals.



3
4
5
# File 'lib/estatic/configuration.rb', line 3

def locals
  @locals
end

#project_pathObject

Returns the value of attribute project_path.



3
4
5
# File 'lib/estatic/configuration.rb', line 3

def project_path
  @project_path
end

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/estatic/configuration.rb', line 3

def title
  @title
end