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.



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

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