class Ruby::Prism::Relocation::LeadingCommentsField

A field representing the leading comments.

Public Instance Methods

Fetches the leading comments of a value.

: (_Value value) -> entry_values

# File lib/ruby/prism/relocation.rb, line 460
def fields(value)
  { leading_comments: comments(value.leading_comments) }
end