Skip to content

Instantly share code, notes, and snippets.

@sferik
Last active December 31, 2015 14:49
Show Gist options
  • 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