lib/jimmy/link.rb in jimmy-0.3.3 vs lib/jimmy/link.rb in jimmy-0.3.4

- old
+ new

@@ -46,10 +46,10 @@ def evaluate(&block) instance_exec &block end def schema(type = nil, &block) - link.schemas[type] = Schema.new(:object, domain, {}, &block) + link.schemas[type] = Schema.new(:object, link.schema).tap { |s| s.setup &block } end def set(**values) values.each { |k, v| link[k.to_s] = v } end