Class: Impulse::SelectComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Impulse::SelectComponent
- Defined in:
- app/components/impulse/select_component.rb
Defined Under Namespace
Classes: OptionStruct
Instance Method Summary collapse
-
#initialize(object_name, method_name, choices = [], selected: nil, **system_args) ⇒ SelectComponent
constructor
A new instance of SelectComponent.
Methods inherited from ApplicationComponent
Methods included from Helpers::AttributesHelper
Constructor Details
#initialize(object_name, method_name, choices = [], selected: nil, **system_args) ⇒ SelectComponent
Returns a new instance of SelectComponent.
8 9 10 11 12 13 14 |
# File 'app/components/impulse/select_component.rb', line 8 def initialize(object_name, method_name, choices = [], selected: nil, **system_args) @object_name = object_name @method_name = method_name @choices = choices @selected = selected @system_args = system_args end |