<?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>と、いうのが JavaScript 界隈で流行っているので Ruby でもやってみた == メソッドを定義する 多分一番簡単なやり方。 比較演算子そのものの結果を変えます。 a = Object.new def a.== other true end p a == 1 &amp;&amp; a == 2 &amp;&amp; a == 3 # =&gt; true a メソッドを定義する Ruby ではメソッド呼び出しの際に () を省略する事が出来るので a() というメソッド呼び出しを a とだけで呼び出すことが出来ます。 def a @a = (@a || 0) + 1 end p a == 1 &amp;&amp; a == 2 &amp;&amp; a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2018%2F01%2F23%2F142936&quot; title=&quot;Ruby で (a ==1 &amp;amp;&amp;amp; a== 2 &amp;amp;&amp;amp; a==3) の結果を真にする - 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>2018-01-23 14:29:36</published>
  <title>Ruby で (a ==1 &amp;&amp; a== 2 &amp;&amp; a==3) の結果を真にする</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2018/01/23/142936</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
