Class: LibRubyParser::Nodes::MatchRest
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::MatchRest
- 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
-
#expression_l ⇒ Loc
readonly
Location of the
*
operator. -
#name ⇒ Node?
readonly
Name of the variable name.
-
#operator_l ⇒ Loc
readonly
Location of the
*
operator.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the *
operator
case foo; in *bar; end
~~~~
2793 2794 2795 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2793 def expression_l @expression_l end |
#name ⇒ Node? (readonly)
Name of the variable name
None
if there's no name (i.e. in *
)
2775 2776 2777 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2775 def name @name end |
#operator_l ⇒ Loc (readonly)
Location of the *
operator
case foo; in *bar; end
~
2784 2785 2786 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2784 def operator_l @operator_l end |