From: Rick DeNatale Date: 2008-01-04T01:49:05+09:00 Subject: Re: "wrong number of arguments" What? I must be thick or somethi On Jan 3, 2008 11:16 AM, Hugh Themm 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/