查看网站首页
查看网站首页
查看 sitemap.xml
✏️ 正在编辑: %3d%3d-i.yaml
路径:
/opt/alt/ruby18/share/ri/1.8/system/Hash/%3d%3d-i.yaml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Equality---Two hashes are equal if they each contain the same number of keys and if each key-value pair is equal to (according to <tt>Object#==</tt>) the corresponding elements in the other hash. - !ruby/struct:SM::Flow::VERB body: " h1 = { "a" => 1, "c" => 2 }\n h2 = { 7 => 35, "c" => 2, "a" => 1 }\n h3 = { "a" => 1, "c" => 2, 7 => 35 }\n h4 = { "a" => 1, "d" => 2, "f" => 35 }\n h1 == h2 #=> false\n h2 == h3 #=> true\n h3 == h4 #=> false\n" full_name: Hash#== is_singleton: false name: == params: | hsh == other_hash => true or false visibility: public
💾 保存文件
← 返回文件管理器