Class: Prism::InterpolatedStringNode
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Node
|
|
|
Instance Chain:
self,
Node
|
|
| Inherits: |
Prism::Node
|
| Defined in: | lib/prism/node_ext.rb, lib/prism/parse_result/newlines.rb |
Instance Attribute Summary
-
#heredoc? ⇒ Boolean
readonly
Returns true if this node was represented as a heredoc in the source code.
Node - Inherited
| #newline_flag? | : () -> bool. |
Instance Method Summary
-
#newline_flag!(lines)
Internal use only
: (Array lines) -> void.
Node - Inherited
| #deprecated | : (*String replacements) -> void. |
| #newline_flag! | : (Array lines) -> void. |
Instance Attribute Details
#heredoc? ⇒ Boolean (readonly)
Returns true if this node was represented as a heredoc in the source code.
# File 'lib/prism/node_ext.rb', line 97
def heredoc? HeredocQuery.heredoc?(opening) end
Instance Method Details
#newline_flag!(lines)
This method is for internal use only.
: (Array lines) -> void
# File 'lib/prism/parse_result/newlines.rb', line 183
def newline_flag!(lines) # :nodoc: first = parts.first first.newline_flag!(lines) if first end