Class: Coalla::AdminStructure
- Inherits:
-
Object
- Object
- Coalla::AdminStructure
- Defined in:
- lib/coalla/builders/admin_structure.rb
Defined Under Namespace
Constant Summary collapse
- CONFIG_FILE_NAME =
'structure.rb'
Instance Attribute Summary collapse
-
#sections ⇒ Object
Returns the value of attribute sections.
Instance Method Summary collapse
-
#initialize(controller, routes) ⇒ AdminStructure
constructor
A new instance of AdminStructure.
- #menu_items ⇒ Object
Constructor Details
#initialize(controller, routes) ⇒ AdminStructure
Returns a new instance of AdminStructure.
18 19 20 21 22 23 |
# File 'lib/coalla/builders/admin_structure.rb', line 18 def initialize(controller, routes) @controller = controller @sections = [] self.class.include(routes.url_helpers) load_sections_from_config end |
Instance Attribute Details
#sections ⇒ Object
Returns the value of attribute sections.
16 17 18 |
# File 'lib/coalla/builders/admin_structure.rb', line 16 def sections @sections end |