Class: FormComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- FormComponent
- Defined in:
- app/components/form_component.rb
Instance Attribute Summary collapse
-
#item ⇒ Object
readonly
Returns the value of attribute item.
Instance Method Summary collapse
-
#initialize(item:, nav_bar: nil) ⇒ FormComponent
constructor
A new instance of FormComponent.
Constructor Details
#initialize(item:, nav_bar: nil) ⇒ FormComponent
Returns a new instance of FormComponent.
8 9 10 11 |
# File 'app/components/form_component.rb', line 8 def initialize(item:, nav_bar: nil) @item = item @nav_bar = end |
Instance Attribute Details
#item ⇒ Object (readonly)
Returns the value of attribute item.
13 14 15 |
# File 'app/components/form_component.rb', line 13 def item @item end |