Module: HakumiComponents::Transfer::Coercion
- Extended by:
- Coercion, T::Sig
- Included in:
- Coercion
- Defined in:
- app/components/hakumi_components/transfer/coercion.rb
Constant Summary collapse
- ItemValue =
T.type_alias { HakumiComponents::Types::FormFieldScalar }
- TitleValue =
T.type_alias { T.any(String, Symbol, Numeric) }
- ItemHash =
T.type_alias { T::Hash[HakumiComponents::Types::HtmlKey, ItemValue] }
- ItemInput =
T.type_alias { T.any(HakumiComponents::Transfer::Item, ItemHash, HakumiComponents::Types::FormFieldScalar) }
Instance Method Summary collapse
Instance Method Details
#items(items, disabled:) ⇒ Object
16 17 18 19 20 |
# File 'app/components/hakumi_components/transfer/coercion.rb', line 16 def items(items, disabled:) items.map.with_index do |item, index| normalize_item(item, index: index, disabled: disabled) end end |