Answer the question
In order to leave comments, you need to log in
How to get the value of all hash keys?
Guys, hello everyone!
I have a hash, I need to get the values of all keys 'D n ', where n is numbers from 0 to 27 .
My code:
sheet.rows.each_with_index do |row, index|
index.to_s
puts row["D#{index}"] # => ничего
end
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question