method

map

ruby latest stable - Class: Bundler::Thor

Method not available on this version

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

map(mappings = nil)
public

Maps an input to a command. If you define:

map "-T" => "list"

Running:

thor -T

Will invoke the list command.

Parameters

Hash[String|Array => Symbol]

Maps the string or the strings in the array to the given command.