lib/schema_serializer/definition.rb in schema_serializer-0.0.10 vs lib/schema_serializer/definition.rb in schema_serializer-0.1.0
- old
+ new
@@ -1,10 +1,10 @@
class SchemaSerializer
class Definition
attr_reader :schemas
def initialize(hash)
- @schemas = hash.each_with_object({}) {|(name, schema), obj|
+ @schemas = hash.each_with_object({}) { |(name, schema), obj|
obj[name.to_s] = Schema.new(schema)
}
end
def schema(name)