Class: Olivander::Components::MenuItemComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Olivander::Components::MenuItemComponent
- Defined in:
- app/components/olivander/components/menu_item_component.rb
Instance Attribute Summary collapse
-
#menu_item ⇒ Object
readonly
Returns the value of attribute menu_item.
Instance Method Summary collapse
-
#initialize(menu_item) ⇒ MenuItemComponent
constructor
A new instance of MenuItemComponent.
Constructor Details
#initialize(menu_item) ⇒ MenuItemComponent
Returns a new instance of MenuItemComponent.
6 7 8 9 |
# File 'app/components/olivander/components/menu_item_component.rb', line 6 def initialize() super @menu_item = end |
Instance Attribute Details
#menu_item ⇒ Object (readonly)
Returns the value of attribute menu_item.
4 5 6 |
# File 'app/components/olivander/components/menu_item_component.rb', line 4 def @menu_item end |