Skip to content

Instantly share code, notes, and snippets.

@tak1n
Created June 29, 2014 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tak1n/6f771b1df362f19d1e7b to your computer and use it in GitHub Desktop.
Save tak1n/6f771b1df362f19d1e7b to your computer and use it in GitHub Desktop.
Rubinius Privatley
class User
def initialize(name)
@name = name
end
protected
def hash
@name.hash
end
end
benny = User.new("benny")
john = User.new("john")
users = [benny, john, benny]
p users.uniq!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment