From: Roger Pack Date: 2010-06-18T05:15:27+09:00 Subject: Re: method interface - hash argument vs. named parameters > foo(hash) > foo(:opt=>val) > > However, there seems to be no way to distinguish that last the two > forms. One possibility would be to check for known keys in the hash. If they're there, assume it's an options hash. Another might be to allow them to input it like :hash => hash if they ever want it that way. But you're probably just stuck. -r ref: http://github.com/rdp/arguments -- Posted via http://www.ruby-forum.com/.