<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takehikom</author_name>
  <author_url>https://blog.hatena.ne.jp/takehikom/</author_url>
  <blog_title>わさっきhb</blog_title>
  <blog_url>https://takehikom.hateblo.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Rubyにおいて，「||=」演算子を使うことの意義は分かるし，自分でもよく使うのですが… 他人のコードを見たRuby初心者の多くは，この風変わりなイディオムに困惑する． a ||= [] これは，aの値が空の配列になるかもしれないという意味だ．||=は以下を省略した構文である． a = a || [] このコードを理解するには，このOR演算子（||）について詳しく理解する必要がある．||演算子は，被演算子のいずれかがtrueであれば，trueを返す． nilとfalse以外の値はすべてtrueになることを覚えておいてほしい．最初の被演算子がtrueなら，||演算子はtrueを返す．falseな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakehikom.hateblo.jp%2Fentry%2F20100913%2F1284318992&quot; title=&quot; nilガード - わさっきhb&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>2010-09-13 04:16:32</published>
  <title> nilガード</title>
  <type>rich</type>
  <url>https://takehikom.hateblo.jp/entry/20100913/1284318992</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
