This repository has been archived by the owner on Aug 23, 2020. It is now read-only.
Add direct send mutation (a.send(:foo)
-> a.foo
)
#69
Labels
a.send(:foo)
-> a.foo
)
#69
Replace
a.__send__(method)
,a.send(method)
, anda.public_send(method)
witha.method
wheremethod
is a string or a symbol. I think we could actually statically replacea.public_send(:b)
witha.b
(might be an interestingrubocop
cop), but we might be able to replace a__send__
orsend
in some scopes with a regular method call and not be able to in some others. In general it just doesn't make sense to callsend
with a literal.The text was updated successfully, but these errors were encountered: