method

to_s

v1_8_6_287 - Show latest stable - Class: Hash
to_s()
public

Converts hsh to a string by converting the hash to an array of [ key, value ] pairs and then converting that array to a string using Array#join with the default separator.

   h = { "c" => 300, "a" => 100, "d" => 400, "c" => 300  }
   h.to_s   #=> "a100c300d400"