0
Hash value like method
i have var = {a: "method_a", b: "method_b"} def code(name) var[name] end def method_a puts "AAA" end ... how to call method from hash(value) ?
1 Réponse
0
done
var = {:a => "method_a", :b => "method_b"}
def method_a
puts "hhhhhhhh"
end
d = var[:a]
send d