Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
postmodern opened this issue Dec 20, 2023 · 0 comments
Open

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

postmodern opened this issue Dec 20, 2023 · 0 comments
Assignees
Labels
feature New Feature

Comments

@postmodern
Copy link
Member

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'
@postmodern postmodern added the feature New Feature label Dec 20, 2023
@postmodern postmodern added this to the 0.2.0 milestone Dec 20, 2023
@postmodern postmodern self-assigned this Dec 20, 2023
@postmodern postmodern removed this from the 0.2.0 milestone Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New Feature
Projects
None yet
Development

No branches or pull requests

1 participant