is there an ampersand “chainable” alias for Hash# in 2.6.5? there's Hash#fetch but that throws an error if the key doesn't exist and a default value isn't provided - something e.g. json_data['meta']&.get('result')?
TCZ has joined #ruby
Hash#dig solves my problem: json_data.dig('meta', 'result')
that was quick
drincruz has joined #ruby
nofxx has joined #ruby
rubber duck debugging is overrated - asking the question on IRC and figuring it out immediately after is much quicker.