I am sorry to bring out a separate question from here, but it really confused me these days. Here is the definition of add_mapping method:
def add_mapping(regexp, &proc)
@test_mappings << [regexp, proc]
end
How could proc
here get executed and return result without using call
method?
Thanks