On Jan 3, 2008 11:16 AM, Hugh Themm <mchughson / gmail.com> wrote:
> NilObject does not have a method called new.

Yes, but he hadn't gotten to that point yet.

  @nested = nested || NilObject.new

won't work, and is probably unnecessary.

   @nested = nested

is probably enough, unless you really want to be able to pass false to
indicate no nested, which would be a strange interface for a ruby
method I think. But it that's what's actually desired, it should be

   @nested = nested || nil



-- 
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/