提交 b8761ed4 编写于 作者: V Vipul A M

Merge pull request #24974 from mohitnatoo/arrayinquirer-any-definition

Added clarity to documentation of ArrayInquirer#any? [ci skip]
......@@ -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])
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册