<?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>Ruby でメソッドを定義する場合、名前には識別子(英数字+`)と再定義可能な演算子のみ使用する事ができます。 しかし、define_method` メソッドを使用するとスペースや記号を含んだ名前のメソッドを定義する事ができます。 class X # #define_method を使用してメソッドを定義する define_method &quot;homu mami&quot; do &quot;homu mami method&quot; end end x = X.new # #send を使用してメソッドを呼び出す p x.send &quot;homu mami&quot; # =&gt; &quot;homu mami method&quot;&quot; #define_m…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2015%2F08%2F05%2F220943&quot; title=&quot;Ruby でスペースや記号が含まれている名前でメソッドを定義する - 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>2015-08-05 22:09:43</published>
  <title>Ruby でスペースや記号が含まれている名前でメソッドを定義する</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2015/08/05/220943</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
