<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>craftone</author_name>
  <author_url>https://blog.hatena.ne.jp/craftone/</author_url>
  <blog_title>craftoneの日記</blog_title>
  <blog_url>https://craftone.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Rubyはハッシュのネストが簡単にはできないので、メソッド定義しないと駄目っぽい。 #counterに入っているHash配下に、pathで示されたHashのネストを作成する。 #末尾のHashオブジェクトはHash.new(0)となって、カウンタに使う。 #戻り値は末尾のカウンタ用Hashオブジェクト（Hash.new(0)のもの） def make_counter(counter, path) head, *tail = path if tail.empty? counter[head] ||= Hash.new(0) else counter[head] ||= Hash.new make…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcraftone.hatenablog.com%2Fentry%2F20080507%2F1210171661&quot; title=&quot;ハッシュをネストしてカウンタを作るとき - craftoneの日記&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-05-07 23:47:41</published>
  <title>ハッシュをネストしてカウンタを作るとき</title>
  <type>rich</type>
  <url>https://craftone.hatenablog.com/entry/20080507/1210171661</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
