Module: HighVoltage::Configuration

Included in:
HighVoltage
Defined in:
lib/high_voltage/configuration.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#action_cachingObject

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_layoutObject

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_pathObject

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_pageObject

Returns the value of attribute home_page.



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

def home_page
  @home_page
end

#layoutObject

Returns the value of attribute layout.



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

def layout
  @layout
end

#page_cachingObject

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_drawerObject

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

Yields:

  • (_self)

Yield Parameters:



14
15
16
# File 'lib/high_voltage/configuration.rb', line 14

def configure
  yield self
end

#set_default_configurationObject



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