method

pretty_print_children

ruby latest stable - Class: RubyVM::AbstractSyntaxTree::Node

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

pretty_print_children(q, names = [])
public

No documentation available.

# File lib/pp.rb, line 518
  def pretty_print_children(q, names = [])
    children.zip(names) do |c, n|
      if n
        q.breakable
        q.text "#{n}:"
      end
      q.group(2) do
        q.breakable
        q.pp c
      end
    end
  end