<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>muramurasan</author_name>
  <author_url>https://blog.hatena.ne.jp/muramurasan/</author_url>
  <blog_title>北の人。</blog_title>
  <blog_url>https://muramurasan.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Ruby</anon>
  </categories>
  <description>最近見たコードの中で、「わかりづらいなー」と思ったことがあったのでメモとして残しておきます。 タイトルの通り、Hash.include?とArray.include?は紛らわしいというお話です。 こんな感じのコードがあったとします。 #..(前略)... foo = { key_a: 'Hello', key_b: 'World' } bar = ['Hello', 'World'] puts foo.include?(foo_param) # -&gt; ??? puts bar.include?(bar_param) # -&gt; ??? 説明用に書いたソースなので、何したいか意味不明な感じですが……</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmuramurasan.hatenablog.jp%2Fentry%2F2015%2F11%2F06%2F000926&quot; title=&quot; Hash.include? と Array.include? - 北の人。&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>2015-11-06 00:09:26</published>
  <title> Hash.include? と Array.include?</title>
  <type>rich</type>
  <url>https://muramurasan.hatenablog.jp/entry/2015/11/06/000926</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
