From: Daniel Berger Date: 2007-10-16T06:53:18+09:00 Subject: Re: RubyTraits 0.1 On Oct 15, 3:35 pm, Phrogz wrote: > On Oct 15, 3:24 pm, Jay Levitt wrote: > > > On Mon, 15 Oct 2007 13:13:40 -0700, Phrogz wrote: > > > Although this syntax reads well: > > > include ModA, :exclude => :foo > > > I think this particular syntax appears odd: > > > include ModA, :include => :foo > > > where this is better: > > > include ModA, :include => :foo > > > I'm staring and staring and staring, but #2 still looks the same as #3. > > > If I cross my eyes, they still look the same, but I also see a 3D Ferris > > wheel pop out. > > Uhm. Yeah. Oops. :) > > I had meant to type:> Although this syntax reads well: > > include ModA, :exclude => :foo > > I think this particular syntax appears odd: > > include ModA, :include => :foo > > where this is better: > > use ModA, :include => :foo > > ...but apparently got lazy. Sorry 'bout that. The :include option is the default if no keywords are supplied. So, you can do this: use ModA, :foo If we override 'include', then it's just this: include ModA, :foo Regards, Dan