<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sinsoku</author_name>
  <author_url>https://blog.hatena.ne.jp/sinsoku/</author_url>
  <blog_title>アジャイルSEの憂鬱</blog_title>
  <blog_url>https://sinsoku.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>Ruby のしくみに面白いコードが書かれていました。 class Hash def key?(val) puts &quot;Looking for key #{val}&quot; false end end def add_two(a: 2, b: 3) a+b end puts add_two(a: 1, b: 1) # Looking for key a # Looking for key b # 5 キーワード引数は内部で Hash#key? を使っているので、上書きすると挙動が変わるという内容。 面白そうなので、実際に試してみた。 Ruby 2.6.0-dev サンプルコードを写経して、 2.6.0-…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsinsoku.hatenablog.com%2Fentry%2F2018%2F05%2F13%2F002711&quot; title=&quot;Hash#key? を上書きしてもキーワード引数は上書きできない - アジャイルSEの憂鬱&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>https://images-fe.ssl-images-amazon.com/images/I/51UJvlz4sPL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-05-13 00:27:11</published>
  <title>Hash#key? を上書きしてもキーワード引数は上書きできない</title>
  <type>rich</type>
  <url>https://sinsoku.hatenablog.com/entry/2018/05/13/002711</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
