lib/avromatic/model_registry.rb in avromatic-0.9.0 vs lib/avromatic/model_registry.rb in avromatic-0.10.0.rc0

- old
+ new

@@ -9,9 +9,13 @@ def initialize(remove_namespace_prefix: nil) @prefix = remove_namespace_prefix @hash = Hash.new end + def clear + @hash.clear + end + def [](fullname) @hash.fetch(fullname) end def register(model)