Class: SimpleNavigation::Configuration
- Inherits:
-
Object
- Object
- SimpleNavigation::Configuration
- Defined in:
- lib/simple_navigation.rb
Overview
Simple Navigation configuration class
Defined Under Namespace
Classes: Builder
Instance Attribute Summary collapse
-
#navigation ⇒ Object
Returns the value of attribute navigation.
Instance Method Summary collapse
- #config {|builder| ... } ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
131 132 133 |
# File 'lib/simple_navigation.rb', line 131 def initialize self. = {} end |
Instance Attribute Details
#navigation ⇒ Object
Returns the value of attribute navigation.
129 130 131 |
# File 'lib/simple_navigation.rb', line 129 def end |
Instance Method Details
#config {|builder| ... } ⇒ Object
135 136 137 138 139 |
# File 'lib/simple_navigation.rb', line 135 def config(&block) builder = Builder.new yield builder builder..each { |tmp| self.[tmp[:name]] = tmp } end |