- 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]
This commit is contained in:
Mohit Natoo 2016-05-11 19:45:01 +05:30
parent 733161d48b
commit a2959abbc6

@ -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])
#