123456789_123456789_123456789_123456789_123456789_

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

Class Method Details

.heredoc?(opening) ⇒ Boolean

Returns true if this node was represented as a heredoc in the source code.

[ GitHub ]

  
# File 'lib/prism/node_ext.rb', line 87

def self.heredoc?(opening)
  # @type self: InterpolatedStringNode | InterpolatedXStringNode | StringNode | XStringNode
  opening&.start_with?("<<")
end