Class: LibRubyParser::Nodes::MatchRest

Inherits:
LibRubyParser::Node show all
Defined in:
lib/lib-ruby-parser/nodes.rb

Overview

Represents a wildcard pattern used in pattern matching (i.e. ‘in *foo`)

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the ‘*` operator

“‘text case foo; in *bar; end

~~~~

“‘

Returns:



2793
2794
2795
# File 'lib/lib-ruby-parser/nodes.rb', line 2793

def expression_l
  @expression_l
end

#nameNode? (readonly)

Name of the variable name

None if there’s no name (i.e. ‘in *`)

Returns:



2775
2776
2777
# File 'lib/lib-ruby-parser/nodes.rb', line 2775

def name
  @name
end

#operator_lLoc (readonly)

Location of the ‘*` operator

“‘text case foo; in *bar; end

~

“‘

Returns:



2784
2785
2786
# File 'lib/lib-ruby-parser/nodes.rb', line 2784

def operator_l
  @operator_l
end