Class: Prism::EmbDocComment
- Defined in:
- lib/prism/parse_result.rb,
sig/generated/prism/parse_result.rbs,
ext/prism/extension.c
Overview
EmbDocComment objects correspond to comments that are surrounded by =begin and =end.
Instance Attribute Summary
Attributes inherited from Comment
Instance Method Summary collapse
-
#inspect ⇒ String
Returns a string representation of this comment.
-
#trailing? ⇒ Boolean
Returns false.
Methods inherited from Comment
#deconstruct_keys, #initialize, #slice
Constructor Details
This class inherits a constructor from Prism::Comment
Instance Method Details
#inspect ⇒ String
Returns a string representation of this comment.
: () -> String
780 781 782 |
# File 'lib/prism/parse_result.rb', line 780 def inspect # :nodoc: "#<Prism::EmbDocComment @location=#{location.inspect}>" end |
#trailing? ⇒ Boolean
Returns false. This can only be true for inline comments.
: () -> bool
773 774 775 |
# File 'lib/prism/parse_result.rb', line 773 def trailing? false end |