diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2019-07-24 15:20:40 -0400 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-06-05 11:49:56 +0900 |
commit | 591a3326e33889858276d66b157125273491edee (patch) | |
tree | 1e3cad7e740b2fea68685a2ab934e9a35da40ebd /ext/psych/lib/psych/nodes | |
parent | efa8df2886d575ddd4b4ab75dd9c7586e0e3a1d4 (diff) |
[ruby/psych] Refactor `symbolize_names`
https://github.com/ruby/psych/commit/3e472ab2d7
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3188
Diffstat (limited to 'ext/psych/lib/psych/nodes')
-rw-r--r-- | ext/psych/lib/psych/nodes/node.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/psych/lib/psych/nodes/node.rb b/ext/psych/lib/psych/nodes/node.rb index f59fb8916b..7e414e771f 100644 --- a/ext/psych/lib/psych/nodes/node.rb +++ b/ext/psych/lib/psych/nodes/node.rb @@ -46,8 +46,8 @@ module Psych # Convert this node to Ruby. # # See also Psych::Visitors::ToRuby - def to_ruby - Visitors::ToRuby.create.accept(self) + def to_ruby(symbolize_names: false) + Visitors::ToRuby.create(symbolize_names: symbolize_names).accept(self) end alias :transform :to_ruby |