<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>K_Koh</author_name>
  <author_url>https://blog.hatena.ne.jp/K_Koh/</author_url>
  <blog_title>Just do IT</blog_title>
  <blog_url>https://k-koh.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>結論： eql?はオブジェクトの値が同じかどうかを評価する equal?はobject_idが同じかどうかを評価する irb(main):001:0&gt; obj = %w(hoge bar baz) =&gt; [&quot;hoge&quot;, &quot;bar&quot;, &quot;baz&quot;] irb(main):003:0&gt; copy = obj.dup =&gt; [&quot;hoge&quot;, &quot;bar&quot;, &quot;baz&quot;] # 値は同じなのでtrue irb(main):004:0&gt; copy == obj =&gt; true # 値は同じなのでtrue irb(main):005:0&gt; copy.eql? obj =&gt; true # object_idが違…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk-koh.hatenablog.com%2Fentry%2F2022%2F07%2F03%2F112112&quot; title=&quot;Ruby の eql? と equal? の違い - Just do IT&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-07-03 11:21:12</published>
  <title>Ruby の eql? と equal? の違い</title>
  <type>rich</type>
  <url>https://k-koh.hatenablog.com/entry/2022/07/03/112112</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
