From 492b379b52a8c35c53038cde35c506cde2776834 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 19 Nov 2024 21:23:15 +0900 Subject: [PATCH] [ruby/pp] [DOC] Add documents https://github.com/ruby/pp/commit/dbf177d0fc --- lib/pp.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pp.rb b/lib/pp.rb index 3e7b0775cb..2cf0045727 100644 --- a/lib/pp.rb +++ b/lib/pp.rb @@ -63,6 +63,7 @@ require 'prettyprint' class PP < PrettyPrint + # The version string VERSION = "0.6.1" # Returns the usable width for +out+. @@ -138,6 +139,7 @@ class PP < PrettyPrint end end + # Module that defines helper methods for pretty_print. module PPMethods # Yields to a block @@ -619,7 +621,7 @@ class MatchData # :nodoc: end if defined?(RubyVM::AbstractSyntaxTree) - class RubyVM::AbstractSyntaxTree::Node + class RubyVM::AbstractSyntaxTree::Node # :nodoc: def pretty_print_children(q, names = []) children.zip(names) do |c, n| if n