obj.public_send(symbol [, args...]) â obj
Instance Public methods
Invokes the method identified by symbol, passing it any arguments specified. Unlike send, #public_send calls public methods only.
1.public_send(:puts, "hello") # causes NoMethodError
Please login to continue.