Subject: Re: Mon proprety isn't a string?
From: Brian Candler <b.candler pobox.com>
Date: Mon, 15 Feb 2010 06:47:49 +0900
References: 357313357315357318
In-reply-to: 357318
Or perhaps clearer:
def remove_spaces
name.strip!
end
If there's any chance that name could actually be nil, then
def remove_spaces
name.strip! if name
end
--
Posted via http://www.ruby-forum.com/.