Created
March 20, 2017 10:31
-
-
Save piotrze/3917204f01bc2d0967bc04f7079357d7 to your computer and use it in GitHub Desktop.
Save puts into file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
some_method_or_expression | |
File.open('/tmp/puts.txt','a') { |s| s.puts _ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment