Class: RuboCop::Cop::InternalAffairs::NodePatternGroups::ASTWalker::NodeGroup
- Inherits:
-
Struct
- Object
- Struct
- RuboCop::Cop::InternalAffairs::NodePatternGroups::ASTWalker::NodeGroup
- Defined in:
- lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb
Overview
Struct to contain data about parts of a node pattern that can be replaced
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#node_types ⇒ Object
Returns the value of attribute node_types.
-
#offense_range ⇒ Object
Returns the value of attribute offense_range.
-
#other_elements? ⇒ Object
Returns the value of attribute other_elements?.
-
#pipe ⇒ Object
Returns the value of attribute pipe.
-
#ranges ⇒ Object
Returns the value of attribute ranges.
-
#sequence? ⇒ Object
Returns the value of attribute sequence?.
-
#start_index ⇒ Object
Returns the value of attribute start_index.
-
#union ⇒ Object
Returns the value of attribute union.
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
17 18 19 |
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17 def name @name end |
#node_types ⇒ Object
Returns the value of attribute node_types
17 18 19 |
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17 def node_types @node_types end |
#offense_range ⇒ Object
Returns the value of attribute offense_range
17 18 19 |
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17 def offense_range @offense_range end |
#other_elements? ⇒ Object
Returns the value of attribute other_elements?
17 18 19 |
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17
def other_elements?
@other_elements?
end
|
#pipe ⇒ Object
Returns the value of attribute pipe
17 18 19 |
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17 def pipe @pipe end |
#ranges ⇒ Object
Returns the value of attribute ranges
17 18 19 |
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17 def ranges @ranges end |
#sequence? ⇒ Object
Returns the value of attribute sequence?
17 18 19 |
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17
def sequence?
@sequence?
end
|
#start_index ⇒ Object
Returns the value of attribute start_index
17 18 19 |
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17 def start_index @start_index end |
#union ⇒ Object
Returns the value of attribute union
17 18 19 |
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17 def union @union end |