Skip to content

Add a lower-level Params::Types::Map type #40

@postmodern

Description

@postmodern

Add a lower-level Params::Types::Map type, which Params::Types::Enum will inherit from. This type will allow defining an arbitrary mapping of String values to other Ruby objects:

param :arch, Map[
  'x86-64' => :x86_64,
  ...
], desc: 'The architecture to compile for'

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions