I was wondering if someone can explain to me why the following code:
def greeter yield end phrase = Proc.new do puts"Hello there!" end puts greeter(&phrase)
The code is printing “Hello there!” as it should but underneath it is also printing the number 21 as well.
Where is this number coming from and what does it mean?
Thanks in advance!