<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>Secret Garden(Instrumental)</blog_title>
  <blog_url>https://secret-garden.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>さてさて、先日 Ruby の開発版に右代入を行う =&gt; 演算子が追加されました。 これは 左辺値 を 右辺の変数 へ代入するための演算子になります。 1 + 2 =&gt; result result # =&gt; 3 参照：Ruby の開発版に右代入演算子とエンドレスメソッド定義構文が入った Ruby 2.7 でパターンマッチ構文が実装された Ruby 2.7 ではパターンマッチ構文が実験的に新しく追加されました。 この構文では次のように in 句で特定の値をキャプチャする事ができます。 homu = { name: &quot;homu&quot;, age: 14 } case homu in { name:, ag…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2020%2F04%2F13%2F103907&quot; title=&quot;Ruby 2.7 でも 1行 in を利用して右代入を行う - Secret Garden(Instrumental)&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>2020-04-13 10:39:07</published>
  <title>Ruby 2.7 でも 1行 in を利用して右代入を行う</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2020/04/13/103907</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
