<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rubytips86</author_name>
  <author_url>https://blog.hatena.ne.jp/rubytips86/</author_url>
  <blog_title>Ruby Tips!</blog_title>
  <blog_url>https://rubytips86.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>あるクラスのオブジェクトがハッシュのキーになるためには、Object#hashとObject#eql?が適切に再定義されていなければならない。ハッシュの内部において、Object#hashは値を格納するためのハッシュ値の計算に、Object#eql?はキーの同一性判定に使われる。Object#eql?はオブジェクトが同一の場合に真を返し、オブジェクトが同一でない場合に偽を返すように再定義する。またObject#hashは整数を返し、かつObject#eql?が真を返す時は、同一の値を返すように再定義しなければならない。以下は2つの数値を保持するクラスClazzを、ハッシュのキーになれるように実…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubytips86.hatenablog.com%2Fentry%2F2014%2F04%2F06%2F184941&quot; title=&quot;ハッシュのキーになるクラスを定義する - Ruby Tips!&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>2014-04-06 18:49:41</published>
  <title>ハッシュのキーになるクラスを定義する</title>
  <type>rich</type>
  <url>https://rubytips86.hatenablog.com/entry/2014/04/06/184941</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
