summaryrefslogtreecommitdiff
path: root/lib/pp.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-11-19 21:23:15 +0900
committergit <[email protected]>2024-11-19 12:34:47 +0000
commit492b379b52a8c35c53038cde35c506cde2776834 ()
tree9403bee270cc6670a999f52501148a569fb3e5e9 /lib/pp.rb
parentaea38ef88738f250c029e8f31eab937280cc90d8 (diff)
[ruby/pp] [DOC] Add documents
https://.com/ruby/pp/commit/dbf177d0fc
-rw-r--r--lib/pp.rb4
1 files changed, 3 insertions, 1 deletions
@@ -63,6 +63,7 @@ require 'prettyprint'
class PP < PrettyPrint
VERSION = "0.6.1"
# Returns the usable width for +out+.
@@ -138,6 +139,7 @@ class PP < PrettyPrint
end
end
module PPMethods
# Yields to a block
@@ -619,7 +621,7 @@ class MatchData # :nodoc:
end
if defined?(RubyVM::AbstractSyntaxTree)
- class RubyVM::AbstractSyntaxTree::Node
def pretty_print_children(q, names = [])
children.zip(names) do |c, n|
if n