Single value. I found this to be the cleanest way to cleanly access a single hash value: hash = {present_value: 'foo'} hash.dig(:missing_value) # => nil ...
確定! 回上一頁