-
-
Save DNNX/d45043a4cea754b3e0bbfa0a47d5a8a5 to your computer and use it in GitHub Desktop.
excellent-7-fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyClass = Class.new { def ===(_); rand < 0.5; end }.new | |
# Who said `MyClass` should be a class? Principle of least surprise, remember! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I thought of
class MyClass; def self.===(_); @x=!@x; end; end