Created
November 20, 2019 17:21
-
-
Save ykws/36dcaa7cf3950766d3e5437c2c969fc3 to your computer and use it in GitHub Desktop.
Access to a file without Ruby Blocks
This file contains 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
File.open(ARGV[0], 'r') do |file| | |
puts file.read | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
do || - end
is Ruby Blocks, too.