Class: Prism::Relocation::LeadingCommentsField
- Inherits:
-
CommentsField
- Object
- CommentsField
- Prism::Relocation::LeadingCommentsField
- Defined in:
- lib/prism/relocation.rb
Overview
A field representing the leading comments.
Instance Method Summary collapse
-
#fields(value) ⇒ Object
Fetches the leading comments of a value.
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 |