lib/graphql/execution/lazy.rb in graphql-1.5.15 vs lib/graphql/execution/lazy.rb in graphql-1.6.0
- old
+ new
@@ -38,12 +38,12 @@
end
@value
end
# @return [Lazy] A {Lazy} whose value depends on another {Lazy}, plus any transformations in `block`
- def then
+ def then(&block)
self.class.new {
- yield(value)
+ block.call(value)
}
end
end
end
end