Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return yields as array #1

Merged
merged 4 commits into from
Jan 8, 2019
Merged

Return yields as array #1

merged 4 commits into from
Jan 8, 2019

Conversation

kke
Copy link
Contributor

@kke kke commented Jan 8, 2019

When used in block mode, you would expect this to work:

stuff = YAML.safe_load_stream(foofoo) do |doc|
  doc.compact
end
# stuff now includes each doc.compact

And with this PR it works.

@kke kke merged commit ea54fda into master Jan 8, 2019
@kke kke deleted the return_yields_as_array branch January 8, 2019 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant