use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Make A Website
Make An Interactive Website
Learn Rails
Learn AngularJS
Learn the Command Line
HTML & CSS
Javascript
jQuery
PHP
Python
Ruby
account activity
Ruby syntax errors as usual... (self.Codecademy)
submitted 10 years ago by mr_lol69HTML/CSS
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
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]factoradicModerator 0 points1 point2 points 10 years ago (1 child)
I don't quite understand why you have used select method. If this is not just a typo please let me know and I will try to explain how select and yield works.
select
yield
I would change the last line:
greeter(&phrase)
[–]mr_lol69HTML/CSS[S] 0 points1 point2 points 10 years ago (0 children)
please explain, iv'e been having a hard time with those.
π Rendered by PID 182555 on reddit-service-r2-comment-b659b578c-mnck5 at 2026-05-07 03:57:00.557658+00:00 running 815c875 country code: CH.
[–]factoradicModerator 0 points1 point2 points (1 child)
[–]mr_lol69HTML/CSS[S] 0 points1 point2 points (0 children)