Class: Satis::SidebarMenu::Component
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Satis::SidebarMenu::Component
- Defined in:
- app/components/satis/sidebar_menu/component.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#menu ⇒ Object
readonly
Returns the value of attribute menu.
-
#menu_options ⇒ Object
readonly
Returns the value of attribute menu_options.
Attributes inherited from ApplicationComponent
Instance Method Summary collapse
-
#initialize(menu, **options) ⇒ Component
constructor
A new instance of Component.
Methods inherited from ApplicationComponent
Constructor Details
#initialize(menu, **options) ⇒ Component
Returns a new instance of Component.
10 11 12 13 14 |
# File 'app/components/satis/sidebar_menu/component.rb', line 10 def initialize(, **) super @menu = @menu_options = end |
Instance Attribute Details
#menu ⇒ Object (readonly)
Returns the value of attribute menu.
6 7 8 |
# File 'app/components/satis/sidebar_menu/component.rb', line 6 def @menu end |
#menu_options ⇒ Object (readonly)
Returns the value of attribute menu_options.
6 7 8 |
# File 'app/components/satis/sidebar_menu/component.rb', line 6 def @menu_options end |