method

parse_hash

ruby latest stable - Class: Bundler::Thor::Arguments

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

parse_hash(name)
private

Runs through the argument array getting strings that contains “:” and mark it as a hash:

[ "name:string", "age:integer" ]

Becomes:

{ "name" => "string", "age" => "integer" }