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
add_helper, #component_name, #ct, #i18n_scope, #original_i18n_scope, #original_virtual_path
Constructor Details
#initialize(**options) ⇒ Component
renders_many :items
9 10 11 |
# File 'app/components/satis/menu_item/component.rb', line 9 def initialize(**) @item = [:item] end |
Instance Attribute Details
#item ⇒ Object (readonly)
Returns the value of attribute item.
6 7 8 |
# File 'app/components/satis/menu_item/component.rb', line 6 def item @item end |