class Prism::InspectVisitor - Documentation for Ruby 4.1
Description: class Prism::InspectVisitor: This visitor is responsible for composing the strings that get returned by the various #inspect methods defined on each of the nodes.
Keywords: ruby,class,Prism::InspectVisitor

🔍

No recent searches

# class Prism::InspectVisitor

This visitor is responsible for composing the strings that get returned by the various #inspect methods defined on each of the nodes.

### Attributes

commands [R]

The list of commands that we need to execute in order to compose the final string. : stopdoc:

### Public Class Methods

compose (node)
Source

    # File lib/prism/inspect_visitor.rb, line 54
    def self.compose(node)
      visitor = new
      node.accept(visitor)
      visitor.compose
    end

Compose an inspect string for the given node.