Class: RuboCop::AST::NodePattern::Node::Predicate
- Inherits:
-
RuboCop::AST::NodePattern::Node
- Object
- Parser::AST::Node
- RuboCop::AST::NodePattern::Node
- RuboCop::AST::NodePattern::Node::Predicate
- Defined in:
- lib/rubocop/ast/node_pattern/node.rb
Overview
Node class for ‘predicate?(:arg, :list)`
Constant Summary
Constants inherited from RuboCop::AST::NodePattern::Node
Instance Method Summary collapse
Methods inherited from RuboCop::AST::NodePattern::Node
#arity, #arity_range, #capture?, #child, #children_nodes, #in_sequence_head, #matches_within_set?, #nb_captures, #rest?, #variadic?, #with
Methods included from Descendence
#child_nodes, #descendants, #each_child_node, #each_descendant, #each_node
Instance Method Details
#arg_list ⇒ Object
132 133 134 |
# File 'lib/rubocop/ast/node_pattern/node.rb', line 132 def arg_list children[1..-1] end |
#method_name ⇒ Object
128 129 130 |
# File 'lib/rubocop/ast/node_pattern/node.rb', line 128 def method_name children.first end |