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]
stopdoc:
The list of commands that we need to execute in order to compose the final string.
Public Class Methods
(node node) → String
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.