Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

Prism::ParseResult::Comments.new

new(parse_result)

Create a new Comments object that will attach comments to the given parse result.

See also #attach! #nearest_targets also in 4.0 · 3.3