From: David Vallner Date: 2006-02-13T09:33:29+09:00 Subject: Re: Idiomatic ruby Dňa Pondelok 13 Február 2006 01:03 Phrogz napísal: > How about returning multiple values? > > def valid? > [ @is_valid_flag, @error_message ] > end Wouldn't ever evaluate as false, which means all the predicates would have to be true on a failure, which might be a bit confusing - I prefer to code assertively if possible. David Vallner