Skip to content

Instantly share code, notes, and snippets.

@deepak
Last active December 20, 2015 14:19
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 deepak/6145625 to your computer and use it in GitHub Desktop.
Save deepak/6145625 to your computer and use it in GitHub Desktop.
module Boolean
end
class TrueClass
include Boolean
end
class FalseClass
include Boolean
end
# false.is_a?(Boolean) => true
# true.is_a?(Boolean) => true
# "hello".is_a?(Boolean) => false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment