Last active
November 20, 2019 14:43
-
-
Save kunosu/32c06dd4e9a7d5745d2b51e6c1702a3e to your computer and use it in GitHub Desktop.
Rubyのmain部分のテンプレート
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
@echo off | |
cd /d %~pd0 | |
ruby %~n0.rb | |
echo. | |
pause |
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
# coding: utf-8 | |
$DEBUG = false | |
#$DEBUG = true | |
BEGIN { | |
puts("#{__FILE__} start\n") | |
} | |
END { | |
puts("\nend...\n") | |
} | |
if $DEBUG | |
puts("デバッグモード") | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment