From: Phil Cooper-king Date: 2008-06-18T22:39:14+09:00 Subject: Accessing Parent class Okay I am a rails guys coming over to ruby, perhaps the wrong way around but hey. I know this is a painfully simple question but I tried google but I dont really know what to search for. is there any way for a sub class to access the instance infront of it? totally stupid class class Monster BOO = 'hoo' attr_accessor :roisin def initialize @roisin = 'rasp' end class Verbal def growl puts 'grrrrrrrr' end end def speach Verbal.new.growl end end how can Verbal access the instance of Monster that created it? -- Posted via http://www.ruby-forum.com/.