class BinData::SanitizedChoices

def [](key)

def [](key)
  @choices[key]
end

def initialize(choices, hints)

def initialize(choices, hints)
  @choices = {}
  choices.each_pair do |key, val|
    if SanitizedParameter === val
      prototype = val
    else
      type, param = val
      prototype = SanitizedPrototype.new(type, param, hints)
    end
    if key == :default
      @choices.default = prototype
    else
      @choices[key] = prototype
    end
  end
end