From: Robert Dober Date: 2007-02-18T08:31:29+09:00 Subject: Re: interesting usages of Struct? On 2/17/07, Phrogz wrote: > On Feb 17, 1:39 am, "Robert Dober" wrote: > > I was naming regular expressions with it roughly like this > > > > Fields=Struct.new(:a,:b,:c) > > /(x*)(y*)(z*)/ === whatever > > named= Fields.new( *Regexp.last_match.captures ) > > Ooh, that's quite cool. Thanks for sharing that! :) > > > My pleasure :) Robert