Append key/value pair to hash with January 18, 2023 by Tarik There is merge!. h = {} h.merge!(key: "bar") # => {:key=>"bar"}