Good day,
I have coordinate objects in protobuf which have a .y attribute defined, but rely on method_missing to trigger calls to C.
Kernel.y intercepts the message and gives me an unexpected result.
I believe other systems which also rely on method_missing like nokogiri will cause the same trouble when trying to access an arbitrary "y" property in a document.
Can we rename the "y" patch to Kernel, to something less common, please?
Otherwise people who use x,y,z coordinates get adverse effects and have to implement a workaround like the following.
defysend(:method_missing,:y)end
Even "yy" would be better. Thank you :)
Good day,
I have coordinate objects in protobuf which have a
.yattribute defined, but rely onmethod_missingto trigger calls to C.Kernel.y intercepts the message and gives me an unexpected result.
I believe other systems which also rely on method_missing like nokogiri will cause the same trouble when trying to access an arbitrary "y" property in a document.
Can we rename the "y" patch to Kernel, to something less common, please?
psych/lib/psych/y.rb
Line 5 in 21f051b
Otherwise people who use x,y,z coordinates get adverse effects and have to implement a workaround like the following.
Even "yy" would be better. Thank you :)