<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cyross</author_name>
  <author_url>https://blog.hatena.ne.jp/cyross/</author_url>
  <blog_title>サイログ。</blog_title>
  <blog_url>https://cyross.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>今日、Rubyのリファレンスマニュアルを見てみたら、構造体って、配列参照と同じ ことできるんですね。知らんかった。 そのとき、[]の中にはいるのは、プロパティと同じ名前のシンボル、もしくは、 インデックス（整数）が入ると。 たとえば、 Size = Struct.new(:x, :y) という構造体があるとすると、 @s1 = Size.new(100, 200) @s2 = [100, 200] @s1[0] == @s2[0] # -&gt; true が成り立つというわけですね。 つまり、構造体と配列でダックタイピングができるわけだ。 なるほどー。いや、奥が深い。Miyako 1.4.6では、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcyross.hatenadiary.org%2Fentry%2F20080122%2F1201022242&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>2008-01-22 02:17:22</published>
  <title> 初めて知る構造体の奥深さ</title>
  <type>rich</type>
  <url>https://cyross.hatenadiary.org/entry/20080122/1201022242</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
