Skip to content

Instantly share code, notes, and snippets.

@ykws
Created November 20, 2019 17:19
Show Gist options
  • Save ykws/d2695671639047f5aabdddbe6f6408fc to your computer and use it in GitHub Desktop.
Save ykws/d2695671639047f5aabdddbe6f6408fc to your computer and use it in GitHub Desktop.
Access to a file with Ruby Blocks
File.open(ARGV[0], 'r') {|file| puts file.read}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment