Ruby - Blocks, Procs, and Lambdas
What is the output of this Ruby code?
class Greeter
def hello(name)
"Hello, #{name}!"
end
end
g = Greeter.new
m = g.method(:hello)
puts m.call("Alice")