<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Rubyの「破壊的メソッド」 - バリケンのRuby日記 - Rubyistこちらから。Rubyのインスタンスメソッドのうち、オブジェクト自身の内容を変えてしまうようなものを「破壊的メソッド」と呼ぶ。 多くの破壊的メソッドには、メソッド名の最後に「!」が付いている。 そしてこれはRubyのコーディング規約にもなっているので、 オブジェクト自身の内容を変更するユーザ定義関数を作成する場合は、 名前の最後に「!」をつけるのが望ましい。例えば、 a = &quot;abc&quot; def hoge(str) b = str.chop return b end puts a puts hoge(a) puts a 結…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20111121%2F1321885946&quot; title=&quot;破壊的メソッド - by shigemk2&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>2011-11-21 23:32:26</published>
  <title>破壊的メソッド</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/20111121/1321885946</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
