@@ -19,7 +19,7 @@ class Proxy < Association::Many
1919 # @example Push a document.
2020 # person.addresses.push(address)
2121 #
22- # @param [ Document | Array<Document> ] args Any number of documents.
22+ # @param [ Document... ] * args Any number of documents.
2323 def <<( *args )
2424 docs = args . flatten
2525 return concat ( docs ) if docs . size > 1
@@ -117,7 +117,7 @@ def clear
117117 # @example Use #persisted? inside block to count persisted documents.
118118 # person.addresses.count { |a| a.persisted? && a.country == "FR" }
119119 #
120- # @param [ Object | Array<Object> ] args Args to delegate to the target.
120+ # @param [ Object... ] * args Args to delegate to the target.
121121 #
122122 # @return [ Integer ] The total number of persisted embedded docs, as
123123 # flagged by the #persisted? method.
@@ -235,7 +235,7 @@ def exists?
235235 # @example Finds the first matching document using a block.
236236 # person.addresses.find { |addr| addr.state == 'CA' }
237237 #
238- # @param [ Array< Object> ] args Various arguments.
238+ # @param [ Object... ] * args Various arguments.
239239 # @param [ Proc ] block Optional block to pass.
240240 #
241241 # @return [ Document | Array<Document> | nil ] A document or matching documents.
@@ -430,10 +430,10 @@ def integrate(document)
430430 # If the method exists on the array, use the default proxy behavior.
431431 #
432432 # @param [ Symbol | String ] name The name of the method.
433- # @param [ Array ] args The method args
433+ # @param [ Object... ] * args The method args.
434434 # @param [ Proc ] block Optional block to pass.
435435 #
436- # @return [ Criteria, Object ] A Criteria or return value from the target.
436+ # @return [ Criteria | Object ] A Criteria or return value from the target.
437437 ruby2_keywords def method_missing ( name , *args , &block )
438438 return super if _target . respond_to? ( name )
439439 klass . send ( :with_scope , criteria ) do
0 commit comments