Module: Cosing::Parser

Defined in:
lib/cosing/parser.rb

Class Method Summary collapse

Class Method Details

.transform_array!(params, key:, split:) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/cosing/parser.rb', line 7

def transform_array!(params, key:, split:)
  params
    .delete(key)
    .split(split)
    .map!(&:strip)
    .reject { |n| n == "-" }
end