object = Object.new
object.define_singleton_method(:foo) do
:bar
end
object.foo
fails with private method `foo' called for #<Object:0x00000001e89580> (NoMethodError)
. Ruby 2.0.0 does not behave like that. Is this a bug in 2.1.0 or intentional change?
It's a known issue. The bug was reported at #9005 and #9141.