I don't know why my original comment got deleted but this was the suggested code:
```ruby(&block)
def each
  cursor.to_enum(&block)
end
```