123456789_123456789_123456789_123456789_123456789_

Class: RuboCop::AST::NodePattern::Checker::Problem

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
Defined in: lib/rubocop/ast/node_pattern/checker.rb

Overview

What is wrong, and the node of the pattern that it is about. The range is relative to the pattern.

Instance Attribute Summary

  • #message rw

    What is wrong, and the node of the pattern that it is about.

  • #node rw

    What is wrong, and the node of the pattern that it is about.

Instance Method Summary

Instance Attribute Details

#message (rw)

What is wrong, and the node of the pattern that it is about. The range is relative to the pattern.

[ GitHub ]

  
# File 'lib/rubocop/ast/node_pattern/checker.rb', line 23

Problem = Struct.new(:node, :message)

#node (rw)

What is wrong, and the node of the pattern that it is about. The range is relative to the pattern.

[ GitHub ]

  
# File 'lib/rubocop/ast/node_pattern/checker.rb', line 23

Problem = Struct.new(:node, :message)

Instance Method Details

#range

[ GitHub ]

  
# File 'lib/rubocop/ast/node_pattern/checker.rb', line 24

def range
  node.source_range
end