Class: Prism::Relocation::LeadingCommentsField

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

Overview

A field representing the leading comments.

Instance Method Summary collapse

Instance Method Details

#fields(value) ⇒ Object

Fetches the leading comments of a value.



337
338
339
# File 'lib/prism/relocation.rb', line 337

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