Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Placeholder for the last used variable:
stackoverflow.com/questions/9559561/where-and-how-...
The example is very strange, its meaning is not clear at all. But if you try to reproduce it:
hh = { test: 1}
params = { test: '' }
hh.select{|key,_| params[key] == ""} # { test: 1}
hh.select{|key| params[key] == ""} # { test: 1}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question