Skip to content
instance method

Prism::ParseResult::Comments#nearest_targets

nearest_targets(node, comment)

Responsible for finding the nearest targets to the given comment within the context of the given encapsulating node.

See also #attach! .new also in 3.4 · 3.3