Module: Prism::HeredocQuery
Do not use. This module is for internal use only.
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/prism/node_ext.rb |
Instance Attribute Summary
-
#heredoc? ⇒ Boolean
readonly
Returns true if this node was represented as a heredoc in the source code.
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 37
def heredoc? opening&.start_with?("<<") end