Skip to content

Instantly share code, notes, and snippets.

@coderberry
Created August 23, 2012 02:15
Show Gist options
  • Select an option

  • Save coderberry/3431389 to your computer and use it in GitHub Desktop.

Select an option

Save coderberry/3431389 to your computer and use it in GitHub Desktop.
w2-e4.rb
>> x = true
=> true
>> y = false
=> false
>> x == y # is x equal to y? This is what the == operand does
=> false
>> eric_age = 35
=> 35
>> josh_age = "35"
=> 35
>> eric_age == josh_age
=> false # a String cannot equal an Integer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment