<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>karlley_jp</author_name>
  <author_url>https://blog.hatena.ne.jp/karlley_jp/</author_url>
  <blog_title>時々とおまわり</blog_title>
  <blog_url>https://karlley.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>ぼっち演算子の使い方をすっかり忘れていたのでまとめておきます。 結論 ぼっち演算子&amp;. とはレシーバーがnil だった場合にNoMethodError ではなくnil を返すRubyのメソッド呼び出しの演算子です。 メソッド呼び出しで .の代わりに &amp;.を使うことができます。この形式でメソッドを呼びだそうとすると、レシーバが nil の場合は以下のように働きます。 ・ 引数の評価が行なわれない ・メソッド呼び出しが行われない ・nil を返す レシーバが nil でない場合は通常のメソッド呼び出しが行われます。 メソッド呼び出し(super・ブロック付き・yield) (Ruby 3.2 リフ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkarlley.hatenablog.jp%2Fentry%2F2023%2F01%2F14%2F205955&quot; title=&quot;【Ruby】ぼっち演算子とは？ - 時々とおまわり&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>2023-01-14 20:59:55</published>
  <title>【Ruby】ぼっち演算子とは？</title>
  <type>rich</type>
  <url>https://karlley.hatenablog.jp/entry/2023/01/14/205955</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
