Skip to content

Instantly share code, notes, and snippets.

@yaroslav-ulanovych
Created July 2, 2012 09:28
Show Gist options
  • Save yaroslav-ulanovych/3032277 to your computer and use it in GitHub Desktop.
Save yaroslav-ulanovych/3032277 to your computer and use it in GitHub Desktop.
implicit def toEqualable[T](obj: T) = new {
def === (other: T): Boolean = {
obj == other
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment