Skip to content

Instantly share code, notes, and snippets.

@reddavis
Created July 16, 2009 21:34
Show Gist options
  • Save reddavis/148707 to your computer and use it in GitHub Desktop.
Save reddavis/148707 to your computer and use it in GitHub Desktop.
def example(a,b)
a || b
end
example(1,0)
#=> true
example(0,0)
#=> false
example(1,1)
#=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment