summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-30 15:05:42 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-30 15:05:42 -0700
commite16d9da05cd2d9f4d1a655d3bd65c3e8e0e21446 (patch)
tree1776bea08e6fa8478f43ec1b4af39a1857107414
parent66daee0543ca38db854b6960256d2a4fe9d77295 (diff)
downloadpsych-e16d9da05cd2d9f4d1a655d3bd65c3e8e0e21446.zip
code reduction
-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