On Mon, Jun 16, 2003 at 01:31:28PM +0900, daz wrote: > > "Markus Jais" <info / mjais.de> wrote: > > I thought Mauricio was going to take your head off ;-) > (SIG_ORANGE_ALERT:) Didn't mean to be harsh. Sorry if I was, I guess I was too tired to think of style :-) > > Country = Struct.new(:name, :person) > > Person_class = Struct.new(:person) > > c = Country.new('France', 'Guy') > > class Country > def method_2 > p Person_class.new('someone else') > end > end > > c.method_2 This method is as simple as it gets, I don't see why you'd want to use any other :) -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com I've run DOOM more in the last few days than I have the last few months. I just love debugging ;-) -- Linus Torvalds