Skip to content

Instantly share code, notes, and snippets.

@timuruski
Created March 4, 2016 16:18
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 timuruski/9af536663d3ad8790ef6 to your computer and use it in GitHub Desktop.
Save timuruski/9af536663d3ad8790ef6 to your computer and use it in GitHub Desktop.
Ruby is weird sometimes
class Foo
end
def Foo
Foo.new
end
p Foo.class
p Foo.new.class
p Foo().class
@gtramontina
Copy link

Keep Ruby Weird! 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment