<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>outofmem</author_name>
  <author_url>https://blog.hatena.ne.jp/outofmem/</author_url>
  <blog_title>Tumbling Dice</blog_title>
  <blog_url>https://outofmem.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>ずーっとC Familyな言語ばっかり使っていたので（VBの話はやめよう）クラスを作るだけでもどうやるのか調べないといけません。 面倒なのでずらずらずらっとメモしていきます。 宣言 ふつーにclassです。 class Hoge end 継承はこんな感じ。 class Hoge &lt; Fuga end スコープはメソッドにしか適用できないので、privateなclassはないみたい。 また、abstractもサポートされていない。そもそもインタプリタなので、abstract classや（JavaやC#で言う）interfaceで責任を担保することが難しいんだと思う。 コンストラクタはiniti…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foutofmem.hatenablog.com%2Fentry%2F2014%2F04%2F21%2F074734&quot; title=&quot;【Ruby】クラスの作り方覚書 - Tumbling Dice&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>2014-04-21 07:47:34</published>
  <title>【Ruby】クラスの作り方覚書</title>
  <type>rich</type>
  <url>https://outofmem.hatenablog.com/entry/2014/04/21/074734</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
