Class: Prism::EmbDocComment

Inherits:
Comment show all
Defined in:
lib/prism/parse_result.rb

Overview

EmbDocComment objects correspond to comments that are surrounded by =begin and =end.

Instance Attribute Summary

Attributes inherited from Comment

#location

Instance Method Summary collapse

Methods inherited from Comment

#deconstruct_keys, #initialize

Constructor Details

This class inherits a constructor from Prism::Comment

Instance Method Details

#inspectObject

Returns a string representation of this comment.



267
268
269
# File 'lib/prism/parse_result.rb', line 267

def inspect
  "#<Prism::EmbDocComment @location=#{location.inspect}>"
end

#trailing?Boolean

This can only be true for inline comments.

Returns:

  • (Boolean)


262
263
264
# File 'lib/prism/parse_result.rb', line 262

def trailing?
  false
end