Skip to content

Instantly share code, notes, and snippets.

@ryanckulp
Created January 1, 2018 21:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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