Class: Prism::Relocation::TrailingCommentsField

Inherits:
CommentsField show all
Defined in:
lib/prism/relocation.rb

Overview

A field representing the trailing comments.

Instance Method Summary collapse

Instance Method Details

#fields(value) ⇒ Object

Fetches the trailing comments of a value.



346
347
348
# File 'lib/prism/relocation.rb', line 346

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