https://skorks.com/2010/05/closures-a-simple-explanation-using-ruby/
Arquivo da tag: Closure
5 Useful Ways to Use Closures in Go
Ruby – Closures
def chama_metodo_com_log(metodo) puts "chamando #{metodo.name} em #{metodo.receiver}" metodo.call end metodo = "string".method(:upcase) metodo.class # => Method chama_metodo_com_log(metodo) # chamando upcase em string # => "STRING"