summaryrefslogtreecommitdiff
path: root/lib/psych/nodes/node.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/psych/nodes/node.rb')
-rw-r--r--lib/psych/nodes/node.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/psych/nodes/node.rb b/lib/psych/nodes/node.rb
index 7e414e7..05cb08d 100644
--- a/lib/psych/nodes/node.rb
+++ b/lib/psych/nodes/node.rb
@@ -46,8 +46,8 @@ module Psych
# Convert this node to Ruby.
#
# See also Psych::Visitors::ToRuby
- def to_ruby(symbolize_names: false)
- Visitors::ToRuby.create(symbolize_names: symbolize_names).accept(self)
+ def to_ruby(symbolize_names: false, freeze: false)
+ Visitors::ToRuby.create(symbolize_names: symbolize_names, freeze: freeze).accept(self)
end
alias :transform :to_ruby