Class: FComponents::FormField::Component
- Defined in:
- app/components/f_components/form_field/component.rb
Instance Attribute Summary collapse
-
#attribute_name ⇒ Object
readonly
Returns the value of attribute attribute_name.
-
#form ⇒ Object
readonly
Returns the value of attribute form.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(form, attribute_name, **options) ⇒ Component
constructor
A new instance of Component.
Methods inherited from Base
Methods included from ComponentsHelper
Constructor Details
#initialize(form, attribute_name, **options) ⇒ Component
Returns a new instance of Component.
8 9 10 11 12 13 14 |
# File 'app/components/f_components/form_field/component.rb', line 8 def initialize(form, attribute_name, **) @form = form @attribute_name = attribute_name = define_elements_classes end |
Instance Attribute Details
#attribute_name ⇒ Object (readonly)
Returns the value of attribute attribute_name.
6 7 8 |
# File 'app/components/f_components/form_field/component.rb', line 6 def attribute_name @attribute_name end |
#form ⇒ Object (readonly)
Returns the value of attribute form.
6 7 8 |
# File 'app/components/f_components/form_field/component.rb', line 6 def form @form end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'app/components/f_components/form_field/component.rb', line 6 def end |