Class: FormComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
lib/app/components/form_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(item:, nav_bar: nil) ⇒ FormComponent

Returns a new instance of FormComponent.



8
9
10
11
# File 'lib/app/components/form_component.rb', line 8

def initialize(item:, nav_bar: nil)
  @item = item
  @nav_bar = nav_bar
end

Instance Attribute Details

#itemObject (readonly)

Returns the value of attribute item.



13
14
15
# File 'lib/app/components/form_component.rb', line 13

def item
  @item
end