From: Eleanor McHugh Date: 2008-04-05T07:13:36+09:00 Subject: Re: RUBY_IMPLEMENTATION On 4 Apr 2008, at 22:06, Alex Young wrote: > Hopefully, yes, if we got the constant selection right. Other things > also spring to mind: > > FeatureSet::Platform::Is::Windows > FeatureSet::Platform::Is::Windows::Vista > FeatureSet::Platform::Can::Fork > FeatureSet::Platform::Can::Compile::C > FeatureSet::Platform::Can::Compile::Java I think this over-complicates matters. Why not use something along the lines of: FEATURES.includes?(:windows_vista) FEATURES.includes?(:fork, :c_extensions) Ellie Eleanor McHugh Games With Brains http://slides.games-with-brains.net ---- raise ArgumentError unless @reality.responds_to? :reason