Ruby: getting "localjumperror: no block given" error
Example:
[1,2,3].each
This error occurs when a method that expects a block doesn't receive one.
Solution:
[1,2,3].each do |i|
puts i
end
Example: Solution:Ruby: getting "localjumperror: no block given" error
This error occurs when a method that expects a block doesn't receive one.
[1,2,3].each
[1,2,3].each do |i|
puts i
end