123456789_123456789_123456789_123456789_123456789_

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

Instance Attribute Details

#heredoc?Boolean (readonly)

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

[ GitHub ]

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

def heredoc?
  opening&.start_with?("<<")
end