Skip to content

Instantly share code, notes, and snippets.

@avsej

avsej/test.rb Secret

Created July 1, 2014 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avsej/fab6d390b0c0fbe4dfbd to your computer and use it in GitHub Desktop.
Save avsej/fab6d390b0c0fbe4dfbd to your computer and use it in GitHub Desktop.
operators precedence
# -*- mode: ruby; coding: utf-8; -*-
def a
puts 'a'
end
def b
puts 'b'
end
def c
puts 'c'
end
a || b && c
# >> a
# >> b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment