Created
May 14, 2014 09:53
-
-
Save caius/f9595d6c399065722de8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = Struct.new(:fred) | |
b = Struct.new(:fred) | |
a == b # => false | |
class George < Struct.new(:name) | |
end | |
# simulate require __FILE__ | |
class George < Struct.new(:name) | |
end | |
# ~> -:10:in `<main>': superclass mismatch for class George (TypeError) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment