Skip to content

Instantly share code, notes, and snippets.

@nagachika
Last active December 22, 2015 23:49
Show Gist options
  • Save nagachika/6549187 to your computer and use it in GitHub Desktop.
Save nagachika/6549187 to your computer and use it in GitHub Desktop.
reproduce code for Refinements bug.
module M
refine(Fixnum) do
def foo
:foo
end
end
end
using M
p([0].map{|i| i.foo})
p([0].map(&:foo))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment