123456789_123456789_123456789_123456789_123456789_

Class: Prism::Relocation::TrailingCommentsField

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Prism::Relocation::CommentsField
Defined in: lib/prism/relocation.rb

Overview

A field representing the trailing comments.

Instance Method Summary

CommentsField - Inherited

#comments

Create comment objects from the given values.

Instance Method Details

#fields(value)

Fetches the trailing comments of a value.

[ GitHub ]

  
# File 'lib/prism/relocation.rb', line 345

def fields(value)
  { trailing_comments: comments(value.trailing_comments) }
end