Class: LibRubyParser::Nodes::Pin
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Pin
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents a pattern based on a "pinned" variable (e.g. ^foo
)
Instance Attribute Summary collapse
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#selector_l ⇒ Loc
readonly
Location of the
^
operator. -
#var ⇒ Node
readonly
Variable that is pinned.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
case foo; in ^bar; end
~~~~
3250 3251 3252 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3250 def expression_l @expression_l end |
#selector_l ⇒ Loc (readonly)
Location of the ^
operator
case foo; in ^bar; end
~
3241 3242 3243 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3241 def selector_l @selector_l end |
#var ⇒ Node (readonly)
Variable that is pinned
3232 3233 3234 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3232 def var @var end |