Class: Satis::MenuItem::Component
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Satis::MenuItem::Component
- Defined in:
- app/components/satis/menu_item/component.rb
Instance Attribute Summary collapse
-
#item ⇒ Object
readonly
Returns the value of attribute item.
Attributes inherited from ApplicationComponent
Instance Method Summary collapse
-
#initialize(**options) ⇒ Component
constructor
renders_many :items.
Methods inherited from ApplicationComponent
Constructor Details
#initialize(**options) ⇒ Component
renders_many :items
10 11 12 |
# File 'app/components/satis/menu_item/component.rb', line 10 def initialize(**) @item = [:item] end |
Instance Attribute Details
#item ⇒ Object (readonly)
Returns the value of attribute item.
7 8 9 |
# File 'app/components/satis/menu_item/component.rb', line 7 def item @item end |