method

pretty_print

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(q)
public

No documentation available.

# File lib/pp.rb, line 531
  def pretty_print(q)
    q.group(1, "(#{type}@#{first_lineno}:#{first_column}-#{last_lineno}:#{last_column}", ")") {
      case type
      when :SCOPE
        pretty_print_children(q, %tbl args body")
      when :ARGS
        pretty_print_children(q, ]pre_num pre_init opt first_post post_num post_init rest kw kwrest block])
      when :DEFN
        pretty_print_children(q, ]mid body])
      else
        pretty_print_children(q)
      end
    }
  end