基底クラスを指定しない場合Objectクラスを指定する
継承する時は、"class 派生クラス < 基底クラス"と書いてきた。
が、基底クラスを指定しない場合でも継承が行なわれている。指定しなかった場合はObjectクラスが指定されている。イメージは
class Book (< Object) def initialize(author, title, genre) @author = author @title = title @genre = genre end def to_s() "著者:#{@author}, 題名:#{@title}, 分野:#{@genre}" end end