>From documentation:
enum.one? [{|obj| block }] → true or false
Passes each element of the collection to the given block. The method
returns true if the block returns true exactly once. If the block is
not given, one? will return true only if exactly one of the collection
members is true.
Robert Pankowecki
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.