Class: Prism::Relocation::TrailingCommentsField
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
CommentsField
|
|
Instance Chain:
self,
CommentsField
|
|
Inherits: |
Prism::Relocation::CommentsField
|
Defined in: | lib/prism/relocation.rb |
Overview
A field representing the trailing comments.
Instance Method Summary
-
#fields(value)
Fetches the trailing comments of a value.
CommentsField
- Inherited
#comments | Create comment objects from the given values. |
Instance Method Details
#fields(value)
Fetches the trailing comments of a value.
# File 'lib/prism/relocation.rb', line 345
def fields(value) { trailing_comments: comments(value.trailing_comments) } end