Skip to content

Instantly share code, notes, and snippets.

@kopylovvlad
Created February 21, 2019 17:42
Show Gist options
  • Save kopylovvlad/79dd01656c2523a6bab82c2e6a7efe46 to your computer and use it in GitHub Desktop.
Save kopylovvlad/79dd01656c2523a6bab82c2e6a7efe46 to your computer and use it in GitHub Desktop.
The script print out its code
$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