<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>maeshima</author_name>
  <author_url>https://blog.hatena.ne.jp/maeshima/</author_url>
  <blog_title>maeshimaの日記</blog_title>
  <blog_url>https://maeshima.hateblo.jp/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>Array#count 引数を渡さなかった場合は要素の個数を返す。引数を渡した場合は、引数と等しい要素の個数を返す [1,2,2,3,3,3].count(2) #=&gt; 2 またはブロックを評価した結果が真になる要素の個数を返す。 [1,2,2,3,3,3].count do |obj| obj &gt; 2; end #=&gt; 3 どうもRails脳だとcountはActiveRecordのメソッドの印象があっていけない。Enumerableにも同じメソッドがあるみたい。 misc 本では「引数を渡さなかった場合はEnumeratorを返す」って書いてあったけど違った。途中で挙動が変わったのかな？ …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmaeshima.hateblo.jp%2Fentry%2F20110118%2F1295334482&quot; title=&quot;Array その3 - maeshimaの日記&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>http://ecx.images-amazon.com/images/I/41ZWYC1Y0GL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-01-18 16:08:02</published>
  <title>Array その3</title>
  <type>rich</type>
  <url>https://maeshima.hateblo.jp/entry/20110118/1295334482</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
