diff options
author | Kouhei Sutou <[email protected]> | 2019-05-25 15:54:02 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2019-08-04 11:55:26 +0900 |
commit | c46ba8e9a3b1b6c13232c1af3e9f2efd4a3eec98 (patch) | |
tree | a27618e39b7267139ba6072bd4d64166eae6873a | |
parent | 54525fbfd4bada3eb39428a83e9c337efcbeb4ce (diff) |
[ruby/rexml] Use PP
https://github.com/ruby/rexml/commit/185062a4a4
-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) |