lib/schema_serializer/definition.rb in schema_serializer-0.0.1 vs lib/schema_serializer/definition.rb in schema_serializer-0.0.2

- old
+ new

@@ -6,10 +6,10 @@ @schemas = hash.each_with_object({}) { |(name, hash), obj| obj[name.to_s] = Schema.new(hash) } end - def find(name) + def schema(name) schemas[name] || (raise SchemaNotFound, name) end end end