Skip to content

Instantly share code, notes, and snippets.

@ryanckulp
Created January 1, 2018 21:51
Show Gist options
  • Save ryanckulp/924804ace7c289a60fa9b5e367bc7c88 to your computer and use it in GitHub Desktop.
Save ryanckulp/924804ace7c289a60fa9b5e367bc7c88 to your computer and use it in GitHub Desktop.
assignment and is-equal example in Ruby
x = 3
y = 3
x == y # => returns 'true'
x = 4
y = 5
x == y # => returns 'false'
x = 5
y = 7
x < y # => returns 'true'
x <= y # => returns 'true'
y >= x # => returns 'true'
y != x # => returns 'true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment