<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tamata78</author_name>
  <author_url>https://blog.hatena.ne.jp/tamata78/</author_url>
  <blog_title>気軽に楽しくプログラムと遊ぶ</blog_title>
  <blog_url>https://tamata78.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Ruby資格取得</anon>
  </categories>
  <description>Ruby 技術者認定試験制度の改訂によりRubyバージョンが1.8から2.1へ変更となった。 変更点について確認して行きます。 ハッシュリテラル 〜: 値の書き方が変更点。もう結構お馴染みの書き方ですね。 最初は何だこれは？？と思いましたが。。 **〜はオブション引数。引数に指定していないKeyが挿入された場合、まとめて格納してくれます。 def test(a: 1, b: 2, **c) p a p b p c end test(b: 3, c: 4, d: 5) #=&gt; 1 #=&gt; 3 #=&gt; {:c=&gt;4, :d=&gt;5} キーワード引数 2.1よりデフォルト値を指定しなくとも良くなった。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftamata78.hatenablog.com%2Fentry%2F2015%2F09%2F30%2F213245&quot; title=&quot;Ruby Gold取得に近づくために1.8 → 2.1 の変更点を理解する - 気軽に楽しくプログラムと遊ぶ&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-09-30 21:32:45</published>
  <title>Ruby Gold取得に近づくために1.8 → 2.1 の変更点を理解する</title>
  <type>rich</type>
  <url>https://tamata78.hatenablog.com/entry/2015/09/30/213245</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
