@@ -19,7 +19,7 @@ class Proxy < Association::Many
19
19
# @example Push a document.
20
20
# person.addresses.push(address)
21
21
#
22
- # @param [ Document | Array<Document> ] args Any number of documents.
22
+ # @param [ Document... ] * args Any number of documents.
23
23
def <<( *args )
24
24
docs = args . flatten
25
25
return concat ( docs ) if docs . size > 1
@@ -117,7 +117,7 @@ def clear
117
117
# @example Use #persisted? inside block to count persisted documents.
118
118
# person.addresses.count { |a| a.persisted? && a.country == "FR" }
119
119
#
120
- # @param [ Object | Array<Object> ] args Args to delegate to the target.
120
+ # @param [ Object... ] * args Args to delegate to the target.
121
121
#
122
122
# @return [ Integer ] The total number of persisted embedded docs, as
123
123
# flagged by the #persisted? method.
@@ -235,7 +235,7 @@ def exists?
235
235
# @example Finds the first matching document using a block.
236
236
# person.addresses.find { |addr| addr.state == 'CA' }
237
237
#
238
- # @param [ Array< Object> ] args Various arguments.
238
+ # @param [ Object... ] * args Various arguments.
239
239
# @param [ Proc ] block Optional block to pass.
240
240
#
241
241
# @return [ Document | Array<Document> | nil ] A document or matching documents.
@@ -430,10 +430,10 @@ def integrate(document)
430
430
# If the method exists on the array, use the default proxy behavior.
431
431
#
432
432
# @param [ Symbol | String ] name The name of the method.
433
- # @param [ Array ] args The method args
433
+ # @param [ Object... ] * args The method args.
434
434
# @param [ Proc ] block Optional block to pass.
435
435
#
436
- # @return [ Criteria, Object ] A Criteria or return value from the target.
436
+ # @return [ Criteria | Object ] A Criteria or return value from the target.
437
437
ruby2_keywords def method_missing ( name , *args , &block )
438
438
return super if _target . respond_to? ( name )
439
439
klass . send ( :with_scope , criteria ) do
0 commit comments