Skip to content

Instantly share code, notes, and snippets.

@snowe2010
Created October 9, 2012 09:16
Show Gist options
  • Save snowe2010/3857579 to your computer and use it in GitHub Desktop.
Save snowe2010/3857579 to your computer and use it in GitHub Desktop.
Checks if the current command is an int or a symbol
if current_command.scan(/^\d+$/).length > 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment