From: 7stud -- Date: 2007-11-09T15:32:14+09:00 Subject: Re: Creature module for the Dragon class Thufir wrote: > I could have "instance" variables in Creature, which Dragon objects > can use? Dragon would have all the methods of the Creature module > available, for instance attribute accessors? > module Creature def kingdom=(some_kingdom) @kingdom = some_kingdom end def kingdom @kingdom end end class Dragon include Creature end d = Dragon.new d.kingdom = 'Mordor' puts d.kingdom --output:-- Mordor -- Posted via http://www.ruby-forum.com/.