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