var hash = Hash.new( key1 => 'value1', key2 => 'value2', ); # Add a new key-value pair hash{:key3} = 'value3';