Class: Prism::Relocation::TrailingCommentsField
- Inherits:
-
CommentsField
- Object
- CommentsField
- Prism::Relocation::TrailingCommentsField
- Defined in:
- lib/prism/relocation.rb
Overview
A field representing the trailing comments.
Instance Method Summary collapse
-
#fields(value) ⇒ Object
Fetches the trailing comments of a value.
Instance Method Details
#fields(value) ⇒ Object
Fetches the trailing comments of a value.
345 346 347 |
# File 'lib/prism/relocation.rb', line 345 def fields(value) { trailing_comments: comments(value.trailing_comments) } end |