<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kawasakisendai2</author_name>
  <author_url>https://blog.hatena.ne.jp/kawasakisendai2/</author_url>
  <blog_title>わかさぎのブログ</blog_title>
  <blog_url>https://kawasakisendai2.hateblo.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>class MyClass2 def method_a puts &quot;method_a&quot; end def method_b method_a endend my_instance = MyClass2.new()my_instance.method_amy_instance.method_b 普通のインスタンスメソッドのサンプルコード いちいちselfと書かない。使うときだけ書くらしい。 インスタンス生成時はMyclass.newと書く。()はあってもなくても動くこと確認した。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkawasakisendai2.hateblo.jp%2Fentry%2F2021%2F10%2F20%2F022716&quot; title=&quot;Rubyでインスタンスメソッド生成 - わかさぎのブログ&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>2021-10-20 02:27:16</published>
  <title>Rubyでインスタンスメソッド生成</title>
  <type>rich</type>
  <url>https://kawasakisendai2.hateblo.jp/entry/2021/10/20/022716</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
