class Prettyrb::Builder
Constants
- NODE_TYPES
Public Instance Methods
n(type, children, source_map)
click to toggle source
# File lib/prettyrb/builder.rb, line 14 def n(type, children, source_map) node_class = NODE_TYPES.fetch(type, Prettyrb::Nodes::BaseNode) node_class.new(type, children, location: source_map) end