Method: Dreck::Parser.parse_list

Defined in:
lib/dreck/parser.rb

.parse_list(type, list) ⇒ Array<Object>

Returns the coerced results.

Parameters:

  • type (Symbol)

    the type of each member of the list

  • list (Array<String>)

    the value of each member

Returns:

  • (Array<Object>)

    the coerced results



68
69
70
# File 'lib/dreck/parser.rb', line 68

def parse_list(type, list)
  list.map { |arg| send "parse_#{type}", arg }
end