diff options
author | Kouhei Sutou <kou@clear-code.com> | 2019-05-25 15:54:02 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-04 11:55:26 +0900 |
commit | c46ba8e9a3b1b6c13232c1af3e9f2efd4a3eec98 (patch) | |
tree | a27618e39b7267139ba6072bd4d64166eae6873a /lib/rexml | |
parent | 54525fbfd4bada3eb39428a83e9c337efcbeb4ce (diff) | |
download | ruby-c46ba8e9a3b1b6c13232c1af3e9f2efd4a3eec98.tar.gz |
[ruby/rexml] Use PP
https://github.com/ruby/rexml/commit/185062a4a4
Diffstat (limited to 'lib/rexml')
-rw-r--r-- | lib/rexml/xpath_parser.rb | 7 |
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) |