Create a gist now

Instantly share code, notes, and snippets.

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