<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sinsoku</author_name>
  <author_url>https://blog.hatena.ne.jp/sinsoku/</author_url>
  <blog_title>アジャイルSEの憂鬱</blog_title>
  <blog_url>https://sinsoku.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>実務では一切の役に立たないRuby雑学。 普通のdef まずは基本の書き方。 def foo puts &quot;hello&quot; end foo #=&gt; &quot;hello&quot; class User def self.foo puts &quot;foo&quot; end class &lt;&lt; self def bar puts &quot;bar&quot; end end end User.foo #=&gt; &quot;foo&quot; User.bar #=&gt; &quot;bar&quot; 特異クラスの別の書き方 やってる事は同じだけど、selfをUserに変えたやつ。 class User class &lt;&lt; User def bar puts &quot;bar&quot; end end end d…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsinsoku.hatenablog.com%2Fentry%2F2018%2F05%2F11%2F012530&quot; title=&quot;Rubyのdefの後に何を書けるか調べる実験 - アジャイルSEの憂鬱&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>2018-05-11 01:25:30</published>
  <title>Rubyのdefの後に何を書けるか調べる実験</title>
  <type>rich</type>
  <url>https://sinsoku.hatenablog.com/entry/2018/05/11/012530</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
