Flowdock
method

public_send

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Object
public_send(*args) public

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
Show source
Register or log in to add new notes.