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

Add utility method to dump data as YAML into file #91

Merged
merged 1 commit into from
Sep 4, 2018

Conversation

ashmaroli
Copy link
Contributor

File.open(file, "w") { |f| YAML.dump(data, f) } returns a File object which is not used thereafter.
The proposed utility method simply writes YAML into given file and returns nil

@aarongustafson aarongustafson merged commit 7cf6d51 into aarongustafson:master Sep 4, 2018
@ashmaroli ashmaroli deleted the yaml-dump-utility branch September 4, 2018 21:53
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.

2 participants