diff options
author | Mohit Natoo <mohitnatoo@gmail.com> | 2016-05-11 19:45:01 +0530 |
---|---|---|
committer | Mohit Natoo <mohitnatoo@gmail.com> | 2016-05-11 20:03:18 +0530 |
commit | a2959abbc6e145ded1321f57c10830afe01d0680 (patch) | |
tree | dd1facfa61cb9caf146db71a465c09e3933b575d /activesupport/lib | |
parent | 733161d48b4292c8731c35eaa20131a49c5a5b9a (diff) | |
download | rails-a2959abbc6e145ded1321f57c10830afe01d0680.tar.gz rails-a2959abbc6e145ded1321f57c10830afe01d0680.tar.bz2 rails-a2959abbc6e145ded1321f57c10830afe01d0680.zip |
- Added clarity to documentation of ArrayInquirer#any? [ci skip]
- Added clarity to documentation of ArrayInquirer#any? [ci skip]
- Added clarity to documentation of ArrayInquirer#any? [ci skip]
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/array_inquirer.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/array_inquirer.rb b/activesupport/lib/active_support/array_inquirer.rb index f59ddf5403..ea328f603e 100644 --- a/activesupport/lib/active_support/array_inquirer.rb +++ b/activesupport/lib/active_support/array_inquirer.rb @@ -9,8 +9,10 @@ module ActiveSupport # variants.desktop? # => false class ArrayInquirer < Array # Passes each element of +candidates+ collection to ArrayInquirer collection. - # The method returns true if at least one element is the same. If +candidates+ - # collection is not given, method returns true. + # The method returns true if any element from the ArrayInquirer collection + # is equal to the stringified or symbolized form of any element in the +candidates+ collection. + # + # If +candidates+ collection is not given, method returns true. # # variants = ActiveSupport::ArrayInquirer.new([:phone, :tablet]) # |