Actions
Feature #9947
openMake `Object#send` and `Object#method` private
Feature #9947:
Make `Object#send` and `Object#method` private
Status:
Open
Assignee:
-
Target version:
-
Description
I propose to make Object#send and Object#method private.
- If someone wants to use public
#sendor#methodwith their class, they can easily opt in :
class MyClass
public :send, :method
end
-
They can also use
BasicObject#__send__. (There is however a mismatch betweenBasicObject#__send__andKernel#__method__.) -
There is hardly any good reason IMO to use public
#sendor#methodwith someone else's classes. -
I am trying to never call
#sendor#methodwith an explicit receiver, but since#sendand#methodare public anyway, i feel that my code will be under-appreciated if someone looks at it.
Actions