Skip to content

Commit 185062a

Browse files
committed
Use PP
1 parent 59378a1 commit 185062a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/rexml/xpath_parser.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# frozen_string_literal: false
2+
3+
require "pp"
4+
25
require_relative 'namespace'
36
require_relative 'xmltokens'
47
require_relative 'attribute'
@@ -620,7 +623,9 @@ def evaluate_predicate(expression, nodesets)
620623

621624
def trace(*args)
622625
indent = " " * @nest
623-
puts("#{indent}#{args.inspect}")
626+
PP.pp(args, "").each_line do |line|
627+
puts("#{indent}#{line}")
628+
end
624629
end
625630

626631
def enter(tag, *args)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy