inspect

hsh.to_s â string
hsh.inspect â string
Instance Public methods

Return the contents of this hash as a string.

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

to_s

doc_ruby_on_rails
2015-04-11 23:23:19
Comments
Leave a Comment

Please login to continue.