<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://yakinikunotare.boo.jp/orebase2/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Ore Base - ruby:basic:class</title>
        <description></description>
        <link>http://yakinikunotare.boo.jp/orebase2/</link>
        <lastBuildDate>Fri, 03 Apr 2026 18:13:11 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>http://yakinikunotare.boo.jp/orebase2/_media/wiki/dokuwiki.svg</url>
            <title>Ore Base</title>
            <link>http://yakinikunotare.boo.jp/orebase2/</link>
        </image>
        <item>
            <title>Ruby / クラス / 動的にクラスを作る</title>
            <link>http://yakinikunotare.boo.jp/orebase2/ruby/basic/class/dynamic_class_build?rev=1716275868&amp;do=diff</link>
            <description>Ruby / クラス / 動的にクラスを作る

クラスを生成する

通常のクラスを作る構文は


class Hoge
  def piyo
    p &quot;piyopiyo&quot;
  end
end


RubyのクラスはClassクラスのインスタンスなので↑はClassオブジェクトリテラルということになる。
リテラル表記があるなら通常の表記もある</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 21 May 2024 07:17:48 +0000</pubDate>
        </item>
    </channel>
</rss>
