Skip to content

Instantly share code, notes, and snippets.

@trekdemo
Created June 6, 2011 20:20
Show Gist options
  • Save trekdemo/1011010 to your computer and use it in GitHub Desktop.
Save trekdemo/1011010 to your computer and use it in GitHub Desktop.
Yes or no
does = is = { true => 'Yes', false => 'No' }
# Use it
does[10 == 50] # => "No"
is[10 > 5] # => "Yes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment