<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tbpg</author_name>
  <author_url>https://blog.hatena.ne.jp/tbpg/</author_url>
  <blog_title>Tbpgr Blog</blog_title>
  <blog_url>https://tbpgr.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>概要 名前付き引数 内容 Ruby1.9以前には名前付き引数がサポートされていません。 擬似的に名前付き引数を利用するためにハッシュを利用します。 サンプル # encoding: utf-8 def hoge(args) args[:cnt] ||= 1 puts args[:hage]*args[:cnt] + args[:hige]*args[:cnt] end hoge(hige:'ひげ', hage:'はげ') hoge(hage:'はげ', hige:'ひげ', cnt:2) 出力 はげひげ はげはげひげひげ 参考（Ruby2.0） Ruby2.0ではパラメータ付き引数が言語サポー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20130702%2F1372778621&quot; title=&quot; メタプログラミングRuby | イディオム | 名前付き引数 - Tbpgr Blog&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>2013-07-02 00:23:41</published>
  <title> メタプログラミングRuby | イディオム | 名前付き引数</title>
  <type>rich</type>
  <url>https://tbpgr.hatenablog.com/entry/20130702/1372778621</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
