Skip to content

Instantly share code, notes, and snippets.

@KraevRoot
Created November 6, 2016 14:39
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 KraevRoot/5dec7c161a75626d2fbe6737c5bacda7 to your computer and use it in GitHub Desktop.
Save KraevRoot/5dec7c161a75626d2fbe6737c5bacda7 to your computer and use it in GitHub Desktop.
wtf
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