Created
November 6, 2016 14:39
-
-
Save KraevRoot/5dec7c161a75626d2fbe6737c5bacda7 to your computer and use it in GitHub Desktop.
wtf
This file contains hidden or 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 | |
def bar | |
:bar | |
end | |
end | |
a = Foo.new | |
def a.bar | |
class << self | |
def bar | |
:foo | |
end | |
end | |
end | |
puts a.bar | |
puts a.bar | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment