<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kamatimaru</author_name>
  <author_url>https://blog.hatena.ne.jp/kamatimaru/</author_url>
  <blog_title>delhi09の勉強日記</blog_title>
  <blog_url>https://kamatimaru.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>タイトルの通りですが、Rubyでは!や+や-はメソッドとしても使えるということを知りました。 !&quot;abc&quot;.include?(&quot;a&quot;)というコードは以下のようにも書けます。 irb(main):006&gt; &quot;abc&quot;.include?(&quot;a&quot;).! =&gt; false もっと純粋化すると、!trueはtrue.!と同じであるということです。 irb(main):010&gt; true.! =&gt; false +や-も同様です。 irb(main):008&gt; 1.+ 2 =&gt; 3 irb(main):009&gt; 3.- 2 =&gt; 1 既存のコードリーディングをしていたらこのような書き方を見かけて分からず、A…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkamatimaru.hatenablog.com%2Fentry%2F2026%2F01%2F23%2F232920&quot; title=&quot;Rubyでは!や+や-はメソッドとしても使える - delhi09の勉強日記&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>2026-01-23 23:29:20</published>
  <title>Rubyでは!や+や-はメソッドとしても使える</title>
  <type>rich</type>
  <url>https://kamatimaru.hatenablog.com/entry/2026/01/23/232920</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
