lib/rubocop/ast/node/mixin/descendence.rb in rubocop-ast-1.4.1 vs lib/rubocop/ast/node/mixin/descendence.rb in rubocop-ast-1.4.2

- old
+ new

@@ -11,16 +11,12 @@ # Note that this is different from `node.children.each { |child| ... }` # which yields all children including non-node elements. # # @overload each_child_node # Yield all nodes. - # @overload each_child_node(type) - # Yield only nodes matching the type. - # @param [Symbol] type a node type - # @overload each_child_node(type_a, type_b, ...) + # @overload each_child_node(type, ...) # Yield only nodes matching any of the types. - # @param [Symbol] type_a a node type - # @param [Symbol] type_b a node type + # @param [Symbol] type a node type # @yieldparam [Node] node each child node # @return [self] if a block is given # @return [Enumerator] if no block is given def each_child_node(*types) return to_enum(__method__, *types) unless block_given?