mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
- 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:
parent
733161d48b
commit
a2959abbc6
1 changed files with 4 additions and 2 deletions
|
@ -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])
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue