In my application has status array which is something like this
status = ['success','failure','warning']
For example, lambda to process status array like this
print_status = lambda { |stat| puts stat }
When I'm trying to pass lambda on status's each method, I got an error which says "ArugmentError: wrong number of arguments (1 for 0)"
status.each(print_status)
any one help me to fix this issue.