Created
March 4, 2016 16:18
-
-
Save timuruski/9af536663d3ad8790ef6 to your computer and use it in GitHub Desktop.
Ruby is weird sometimes
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
class Foo | |
end | |
def Foo | |
Foo.new | |
end | |
p Foo.class | |
p Foo.new.class | |
p Foo().class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Keep Ruby Weird! 😆