lib/bindata/sanitize.rb in bindata-1.4.0 vs lib/bindata/sanitize.rb in bindata-1.4.1

- old
+ new

@@ -108,10 +108,14 @@ else type, param = val prototype = SanitizedPrototype.new(type, param, endian) end - @choices[key] = prototype + if key == :default + @choices.default = prototype + else + @choices[key] = prototype + end end end def [](key) @choices[key]