Module: Chewy::Search::Parameters::StringArrayStorage

Included in:
DocvalueFields
Defined in:
lib/chewy/search/parameters/concerns/string_array_storage.rb

Overview

Stores value as an array of strings.

Instance Method Summary collapse

Instance Method Details

#update!(other_value) ⇒ Array<String, Symbol>

Unions two arrays.

Parameters:

  • other_value (String, Symbol, Array<String, Symbol>)

    any acceptable storage value

Returns:

  • (Array<String, Symbol>)

    updated value

See Also:



11
12
13
# File 'lib/chewy/search/parameters/concerns/string_array_storage.rb', line 11

def update!(other_value)
  @value = value | normalize(other_value)
end