Created
September 12, 2012 11:27
-
-
Save jonasmaturana/3706055 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
if ARGV[0].nil? | |
def argument(_) | |
raise "No arguments provided" | |
end | |
else | |
def argument(index) | |
ARGV[index] | |
end | |
end | |
puts argument(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment