Skip to content

Instantly share code, notes, and snippets.

@caius
Created May 14, 2014 09:53
Show Gist options
  • Save caius/f9595d6c399065722de8 to your computer and use it in GitHub Desktop.
Save caius/f9595d6c399065722de8 to your computer and use it in GitHub Desktop.
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