Class: Estatic::Configuration
- Inherits:
-
Object
- Object
- Estatic::Configuration
- Defined in:
- lib/estatic/configuration.rb
Instance Attribute Summary collapse
-
#categories ⇒ Object
Returns the value of attribute categories.
-
#chunk ⇒ Object
Returns the value of attribute chunk.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#estatic_site_path ⇒ Object
Returns the value of attribute estatic_site_path.
-
#featured ⇒ Object
Returns the value of attribute featured.
-
#include_product_page ⇒ Object
Returns the value of attribute include_product_page.
-
#locals ⇒ Object
Returns the value of attribute locals.
-
#project_path ⇒ Object
Returns the value of attribute project_path.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#categories ⇒ Object
Returns the value of attribute categories.
3 4 5 |
# File 'lib/estatic/configuration.rb', line 3 def categories @categories end |
#chunk ⇒ Object
Returns the value of attribute chunk.
3 4 5 |
# File 'lib/estatic/configuration.rb', line 3 def chunk @chunk end |
#domain ⇒ Object
Returns the value of attribute domain.
3 4 5 |
# File 'lib/estatic/configuration.rb', line 3 def domain @domain end |
#estatic_site_path ⇒ Object
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 |
#featured ⇒ Object
Returns the value of attribute featured.
3 4 5 |
# File 'lib/estatic/configuration.rb', line 3 def featured @featured end |
#include_product_page ⇒ Object
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 |
#locals ⇒ Object
Returns the value of attribute locals.
3 4 5 |
# File 'lib/estatic/configuration.rb', line 3 def locals @locals end |
#project_path ⇒ Object
Returns the value of attribute project_path.
3 4 5 |
# File 'lib/estatic/configuration.rb', line 3 def project_path @project_path end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/estatic/configuration.rb', line 3 def title @title end |