Module: HighVoltage::Configuration
- Included in:
- HighVoltage
- Defined in:
- lib/high_voltage/configuration.rb
Instance Attribute Summary collapse
-
#action_caching ⇒ Object
Returns the value of attribute action_caching.
-
#action_caching_layout ⇒ Object
Returns the value of attribute action_caching_layout.
-
#content_path ⇒ Object
Returns the value of attribute content_path.
-
#home_page ⇒ Object
Returns the value of attribute home_page.
-
#layout ⇒ Object
Returns the value of attribute layout.
-
#page_caching ⇒ Object
Returns the value of attribute page_caching.
-
#route_drawer ⇒ Object
Returns the value of attribute route_drawer.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#action_caching ⇒ Object
Returns the value of attribute action_caching.
3 4 5 |
# File 'lib/high_voltage/configuration.rb', line 3 def action_caching @action_caching end |
#action_caching_layout ⇒ Object
Returns the value of attribute action_caching_layout.
3 4 5 |
# File 'lib/high_voltage/configuration.rb', line 3 def action_caching_layout @action_caching_layout end |
#content_path ⇒ Object
Returns the value of attribute content_path.
3 4 5 |
# File 'lib/high_voltage/configuration.rb', line 3 def content_path @content_path end |
#home_page ⇒ Object
Returns the value of attribute home_page.
3 4 5 |
# File 'lib/high_voltage/configuration.rb', line 3 def home_page @home_page end |
#layout ⇒ Object
Returns the value of attribute layout.
3 4 5 |
# File 'lib/high_voltage/configuration.rb', line 3 def layout @layout end |
#page_caching ⇒ Object
Returns the value of attribute page_caching.
3 4 5 |
# File 'lib/high_voltage/configuration.rb', line 3 def page_caching @page_caching end |
#route_drawer ⇒ Object
Returns the value of attribute route_drawer.
3 4 5 |
# File 'lib/high_voltage/configuration.rb', line 3 def route_drawer @route_drawer end |
Class Method Details
.extended(base) ⇒ Object
18 19 20 |
# File 'lib/high_voltage/configuration.rb', line 18 def self.extended(base) base.set_default_configuration end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
14 15 16 |
# File 'lib/high_voltage/configuration.rb', line 14 def configure yield self end |
#set_default_configuration ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/high_voltage/configuration.rb', line 22 def set_default_configuration self.action_caching = false self.action_caching_layout = true self.content_path = 'pages/' self.home_page = nil self.layout = 'application' self.page_caching = false self.route_drawer = HighVoltage::RouteDrawers::Default self.routes = true end |