summaryrefslogtreecommitdiff
path: root/lib/rexml
diff options
context:
space:
mode:
authorKouhei Sutou <kou@clear-code.com>2019-05-25 15:54:02 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-04 11:55:26 +0900
commitc46ba8e9a3b1b6c13232c1af3e9f2efd4a3eec98 (patch)
treea27618e39b7267139ba6072bd4d64166eae6873a /lib/rexml
parent54525fbfd4bada3eb39428a83e9c337efcbeb4ce (diff)
[ruby/rexml] Use PP
https://github.com/ruby/rexml/commit/185062a4a4
Diffstat (limited to 'lib/rexml')
-rw-r--r--lib/rexml/xpath_parser.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/rexml/xpath_parser.rb b/lib/rexml/xpath_parser.rb
index b931354625..0f0e7a5627 100644
--- a/lib/rexml/xpath_parser.rb
+++ b/lib/rexml/xpath_parser.rb
@@ -1,4 +1,7 @@
# frozen_string_literal: false
+
+require "pp"
+
require_relative 'namespace'
require_relative 'xmltokens'
require_relative 'attribute'
@@ -620,7 +623,9 @@ module REXML
def trace(*args)
indent = " " * @nest
- puts("#{indent}#{args.inspect}")
+ PP.pp(args, "").each_line do |line|
+ puts("#{indent}#{line}")
+ end
end
def enter(tag, *args)