Send an unknown method call: Difference between revisions

m
→‎{{header|Ruby}}: It uses "bar".
(→‎{{header|Ruby}}: Show that Object#send can call private methods.)
m (→‎{{header|Ruby}}: It uses "bar".)
Line 87:
 
=={{header|Ruby}}==
You may replace :foo, :bar or "foobar" with any expression that returns a Symbol or String.
 
<lang ruby>class Example
Anonymous user