As Rafe Kettler posted, using zip is the way to go.
Hash[members.zip(instruments)]
More Related Contents:
- How to convert Time format in ruby
- Regex for reverse match a string
- Ruby, Difference between exec, system and %x() or Backticks
- What is the difference or value of these block coding styles in Ruby?
- How to understand symbols in Ruby
- Ruby array access 2 consecutive(chained) elements at a time
- Look up all descendants of a class in Ruby
- What does &. (ampersand dot) mean in Ruby?
- “for” vs “each” in Ruby
- Mixing keyword with regular arguments in Ruby?
- String concatenation vs. interpolation in Ruby
- Block definition – difference between braces and do-end?
- When to use RSpec let()?
- How can I use Ruby to colorize the text output to a terminal? [closed]
- what’s different between each and collect method in Ruby [duplicate]
- How to create a file in Ruby
- Should Gemfile.lock be included in .gitignore?
- Get names of all files from a folder with Ruby
- cannot load such file — zlib even after using rvm pkg install zlib
- In Ruby is there a way to overload the initialize constructor?
- Unresolved specs during Gem::Specification.reset:
- Extract a substring from a string in Ruby using a regular expression
- How to get rid of non-ascii characters in ruby
- How do you use global variables or constant values in Ruby?
- How to convert a string to a constant in Ruby?
- Super keyword in Ruby
- Regex to split BBCode into pieces
- Really Cheap Command-Line Option Parsing in Ruby
- Running another ruby script from a ruby script
- How to make an HTTP GET with modified headers?