ronin-rb / ronin-core

A core library for all ronin libraries.
https://ronin-rb.dev
GNU Lesser General Public License v3.0
3 stars 3 forks source link

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

Open postmodern opened 10 months ago

postmodern commented 10 months ago

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'