<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yarb</author_name>
  <author_url>https://blog.hatena.ne.jp/yarb/</author_url>
  <blog_title>yarbの日記</blog_title>
  <blog_url>https://yarb.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>演算子の「+」や「-」は実際にはメソッド。自己代入演算子の「+=」はシンタックス・シュガーで、実際には「+」で定義されたメソッドが展開されているだけだという。演算子に見えるものはメソッドなのでオーバーライドできる。 class Fixnum def +(n) self ** n end end irb(main):006:0&gt; 3+4 =&gt; 81 irb(main):005:0&gt; a = 3 =&gt; 3 irb(main):004:0&gt; a += 4 =&gt; 81演算子に見えるものでも「+」はメソッド「=」「!」などは組み込みの演算子という違いがある。買ったまま放置しているGaucheの入門本によ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyarb.hatenadiary.org%2Fentry%2F20081208%2Fp1&quot; title=&quot;演算子？ メソッド？ - yarbの日記&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>2008-12-08 00:00:00</published>
  <title>演算子？ メソッド？</title>
  <type>rich</type>
  <url>https://yarb.hatenadiary.org/entry/20081208/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
