diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-05-11 20:05:23 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-05-11 20:05:23 +0530 |
commit | b8761ed442c5d504be7d0841d635c43bc3601216 (patch) | |
tree | f821190d1b7210aced9c67513977b1f3c72f8dd2 /activesupport | |
parent | bd04c0656c8335b23d16970d0865f87073fba8c9 (diff) | |
parent | a2959abbc6e145ded1321f57c10830afe01d0680 (diff) | |
download | rails-b8761ed442c5d504be7d0841d635c43bc3601216.tar.gz rails-b8761ed442c5d504be7d0841d635c43bc3601216.tar.bz2 rails-b8761ed442c5d504be7d0841d635c43bc3601216.zip |
Merge pull request #24974 from mohitnatoo/arrayinquirer-any-definition
Added clarity to documentation of ArrayInquirer#any? [ci skip]
Diffstat (limited to 'activesupport')
-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]) # |