Server IP : 66.29.132.122 / Your IP : 18.119.253.133 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/thread-self/root/proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/Hash/ |
Upload File : |
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Rebuilds the hash based on the current hash values for each key. If values of key objects have changed since they were inserted, this method will reindex <em>hsh</em>. If <tt>Hash#rehash</tt> is called while an iterator is traversing the hash, an <tt>IndexError</tt> will be raised in the iterator. - !ruby/struct:SM::Flow::VERB body: " a = [ "a", "b" ]\n c = [ "c", "d" ]\n h = { a => 100, c => 300 }\n h[a] #=> 100\n a[0] = "z"\n h[a] #=> nil\n h.rehash #=> {["z", "b"]=>100, ["c", "d"]=>300}\n h[a] #=> 100\n" full_name: Hash#rehash is_singleton: false name: rehash params: | hsh.rehash -> hsh visibility: public