lib/metaractor.rb in metaractor-3.0.1 vs lib/metaractor.rb in metaractor-3.1.0

- old
+ new

@@ -75,6 +75,18 @@ end def self.hash_formatter=(callable) @hash_formatter = callable end + + def self.types + @types ||= {} + end + + def self.register_type(type, callable) + types[type] = callable + end + + def self.clear_types! + @types = {} + end end