-
-
Save adam12/0343323253f3e7aeb5b3e21472ef17bf to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env ruby | |
require "rbconfig" | |
RUBY = File.join(RbConfig::CONFIG["bindir"], RbConfig::CONFIG["RUBY_INSTALL_NAME"]) | |
exec RUBY, "-e", "eval File.read('#{__FILE__}')[/^__END__(.*)/m, 1]" | |
__END__ | |
puts "Hello world!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment