Starting in Ruby 2.3, the Hash class actually added a method that does essentially this. Hash#dig takes a keypath and will access the value: ...
確定! 回上一頁