Class: RuboCop::Cop::InternalAffairs::NodePatternGroups::ASTWalker::NodeGroup

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name


17
18
19
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17

def name
  @name
end

#node_typesObject

Returns the value of attribute node_types

Returns:

  • (Object)

    the current value of 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_rangeObject

Returns the value of attribute offense_range

Returns:

  • (Object)

    the current value of 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?

Returns:

  • (Object)

    the current value of 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

#pipeObject

Returns the value of attribute pipe

Returns:

  • (Object)

    the current value of pipe


17
18
19
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17

def pipe
  @pipe
end

#rangesObject

Returns the value of attribute ranges

Returns:

  • (Object)

    the current value of 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?

Returns:

  • (Object)

    the current value of sequence?


17
18
19
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17

def sequence?
  @sequence?
end

#start_indexObject

Returns the value of attribute start_index

Returns:

  • (Object)

    the current value of 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

#unionObject

Returns the value of attribute union

Returns:

  • (Object)

    the current value of union


17
18
19
# File 'lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb', line 17

def union
  @union
end