summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/psych/visitors/to_ruby.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/psych/visitors/to_ruby.rb b/lib/psych/visitors/to_ruby.rb
index a83892f..34e0442 100644
--- a/lib/psych/visitors/to_ruby.rb
+++ b/lib/psych/visitors/to_ruby.rb
@@ -16,7 +16,7 @@ module Psych
return o.value if ['!str', 'tag:yaml.org,2002:str'].include?(o.tag)
return o.value if o.quoted
- return ScalarScanner.new(o.value).tokenize.last unless o.quoted
+ return ScalarScanner.new(o.value).tokenize.last
end
def visit_Psych_Nodes_Sequence o