Created
February 21, 2019 17:42
-
-
Save kopylovvlad/79dd01656c2523a6bab82c2e6a7efe46 to your computer and use it in GitHub Desktop.
The script print out its code
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
$MY_FILE_PATH = File.expand_path(File.dirname(__FILE__)) | |
content = File.open("#{$MY_FILE_PATH}/#{__FILE__}").read | |
puts content | |
puts 'end of script' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment