Ruby only calls this method if the code cannot be interpreted as a variable assignment. There is no better way to force a method call.
self.c = 1 send(:c=, 1) __send__(:c=, 1) method(:c=).call(1) method(:c=)[1]
Guilherme Bernal Feb 24 2018-11-21T00: 00Z
source share