<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mas-higa</author_name>
  <author_url>https://blog.hatena.ne.jp/mas-higa/</author_url>
  <blog_title>ひがきの日記</blog_title>
  <blog_url>https://mas-higa.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>自作クラスのオブジェクトを Array に詰めて sort してみる。 class OreOre def initialize(val) @value = val end attr_accessor :value def inspect; &quot;o:#{@value}&quot; end end ary = 5.downto(1).inject([]){|a, i| a &lt;&lt; OreOre.new(i)} # =&gt; [o:5, o:4, o:3, o:2, o:1] ary.sort # ~&gt; -:8:in `sort': undefined method `&lt;=&gt;' for 5:OreOre (NoMet…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmas-higa.hatenadiary.org%2Fentry%2F20090708%2F1247060224&quot; title=&quot;オブジェクトの順序 - ひがきの日記&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>2009-07-08 22:37:04</published>
  <title>オブジェクトの順序</title>
  <type>rich</type>
  <url>https://mas-higa.hatenadiary.org/entry/20090708/1247060224</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
