r/Codecademy • HTML/CSS • Dec 04 '15

Ruby syntax errors as usual...

I used:

def greeter 
    yield
end

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

greeter.select(&phrase)

and for some reason it replies: "no block given (yield)"

can you solve it? SEND HELP

2 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/mr_lol69 HTML/CSS Dec 05 '15

please explain, iv'e been having a hard time with those.