<code>
if(FieldTypes.key? field && FieldTypes[field].respond_to?:select)
  puts "selectable"
</code>

Hi, I'm having trouble writing the above line correctly. It works if I
explicitly put:

FieldTypes[field].respond_to?(:select)

But I don't understand why the parenthesis are required in this case.

Thanks a lot for helping
  -Cuppo
-- 
Posted via http://www.ruby-forum.com/.