Does anyone know why I keep getting an error for this: def greeter(name) yield(name) end greeter("Jack") {|x| puts "Welcome to greeter #{x}"} phrase=Proc.new {|x| puts "Hello there!"} greeter.select(&phrase)
the error says wrong number of arguments (0 for 1)
but I can still progress to the next lesson.
You have a parameter called (name)… There is not meant to be a parameter because there is not meant to be an argument. I feel the code should look like this instead.
It is very good that you can add simple informative ifnormation and I admire that you do not post randomm and long posts that explain things in a way that need explaining. I think that the way you are short and get to the point and incude a short example are ways of a great man or woman and you will go well in life if you continue this though it.