Class: LibRubyParser::Nodes::Dsym
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Dsym
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents a symbol with interpolation (i.e. :"#{foo}"
)
Instance Attribute Summary collapse
-
#begin_l ⇒ Loc?
readonly
Location of the symbol begin.
-
#end_l ⇒ Loc?
readonly
Location of the symbol begin.
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#parts ⇒ ::Array<Node>
readonly
A list of symbol parts (static literals and interpolated expressions).
Instance Attribute Details
#begin_l ⇒ Loc? (readonly)
Location of the symbol begin
:"#{foo}"
~~
None
if Dsym
is a part of the interpolated symbol array:
%I[#{bar}]
1259 1260 1261 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1259 def begin_l @begin_l end |
#end_l ⇒ Loc? (readonly)
Location of the symbol begin
:"#{foo}"
~
None
if Dsym
is a part of the interpolated symbol array:
%I[#{bar}]
1274 1275 1276 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1274 def end_l @end_l end |
#expression_l ⇒ Loc (readonly)
Location of the full expression
:"#{foo}"
~~~~~~~~~
1283 1284 1285 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1283 def expression_l @expression_l end |
#parts ⇒ ::Array<Node> (readonly)
A list of symbol parts (static literals and interpolated expressions)
1244 1245 1246 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1244 def parts @parts end |