Greeter() Says I'm wrong, but I think I'm right


#1

I think this error is incorrect. Far as I can tell, the code worked. Please correct me if I'm wrong.

Here's a screen capture of the window:

screencapture


#2

Downcase the "T" in "There" and it should work


#3

Yup, sure did. Ha! Thanks!


#4

It did not work for me when I just downcased the T in There but it worked when I also inserted 'end' :slight_smile:

def greeter
yield
end

phrase = Proc.new do puts "Hello there!"
end

greeter(&phrase)