Previously, I asked about a clever way to execute a method on a given condition \"Ruby a clever way to execute a function on a condition.\"
The solutions and respons
table = { :a => 'test', :b => 12, :c => lambda { "Hallo" }, :d => def print(); "Hallo in test"; end } puts table[:a] puts table[:b] puts table[:c].call puts table[:d].send( :print )