Skip to content

Commit

Permalink
Fix documentation [doc]
Browse files Browse the repository at this point in the history
None of these methods actually accept an array of symbols.

Note: None of these methods appear to have specs
  • Loading branch information
marcandre authored and bbatsov committed Feb 9, 2020
1 parent aab3252 commit 492ebf8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/rubocop/ast/node.rb
Expand Up @@ -141,9 +141,6 @@ def node_parts
# Yield only nodes matching any of the types.
# @param [Symbol] type_a a node type
# @param [Symbol] type_b a node type
# @overload each_ancestor(types)
# Yield only nodes matching any of types in the array.
# @param [Array<Symbol>] types an array containing node types
# @yieldparam [Node] node each ancestor node
# @return [self] if a block is given
# @return [Enumerator] if no block is given
Expand Down Expand Up @@ -178,9 +175,6 @@ def ancestors
# Yield only nodes matching any of the types.
# @param [Symbol] type_a a node type
# @param [Symbol] type_b a node type
# @overload each_child_node(types)
# Yield only nodes matching any of types in the array.
# @param [Array<Symbol>] types an array containing node types
# @yieldparam [Node] node each child node
# @return [self] if a block is given
# @return [Enumerator] if no block is given
Expand Down Expand Up @@ -216,9 +210,6 @@ def child_nodes
# Yield only nodes matching any of the types.
# @param [Symbol] type_a a node type
# @param [Symbol] type_b a node type
# @overload each_descendant(types)
# Yield only nodes matching any of types in the array.
# @param [Array<Symbol>] types an array containing node types
# @yieldparam [Node] node each descendant node
# @return [self] if a block is given
# @return [Enumerator] if no block is given
Expand Down Expand Up @@ -254,9 +245,6 @@ def descendants
# Yield only nodes matching any of the types.
# @param [Symbol] type_a a node type
# @param [Symbol] type_b a node type
# @overload each_node(types)
# Yield only nodes matching any of types in the array.
# @param [Array<Symbol>] types an array containing node types
# @yieldparam [Node] node each node
# @return [self] if a block is given
# @return [Enumerator] if no block is given
Expand Down

0 comments on commit 492ebf8

Please sign in to comment.