Module: Prism::HeredocQuery
Do not use. This module is for internal use only.
| Relationships & Source Files | |
| Defined in: | lib/prism/node_ext.rb |
Class Method Summary
-
.heredoc?(opening) ⇒ Boolean
Returns true if this node was represented as a heredoc in the source code.
Class Method Details
.heredoc?(opening) ⇒ Boolean
Returns true if this node was represented as a heredoc in the source code.
# File 'lib/prism/node_ext.rb', line 87
def self.heredoc?(opening) # @type self: InterpolatedStringNode | InterpolatedXStringNode | StringNode | XStringNode opening&.start_with?("<<") end