Skip to content

Instantly share code, notes, and snippets.

@sferik
Last active December 31, 2015 14:49
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sferik/8002324 to your computer and use it in GitHub Desktop.
Save sferik/8002324 to your computer and use it in GitHub Desktop.
class BasicObject
def &&(other)
other
end
def ||(other)
self
end
end
class NilClass
def &&(other)
self
end
def ||(other)
other
end
end
class FalseClass
def &&(other)
self
end
def ||(other)
other
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment