From 3a2e7c38729bb450325102ab31746732d884d11b Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 17 Nov 2009 21:36:20 -0800 Subject: fixing more tests --- lib/psych/visitors/to_ruby.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/psych/visitors/to_ruby.rb b/lib/psych/visitors/to_ruby.rb index 41a5302..826705c 100644 --- a/lib/psych/visitors/to_ruby.rb +++ b/lib/psych/visitors/to_ruby.rb @@ -15,10 +15,10 @@ module Psych return result if Psych.domain_types.empty? if target.respond_to?(:tag) && target.tag - short_name = target.tag.sub(/^!/, '').split('/', 2).last + short_name = target.tag.split('/', 2).last if Psych.domain_types.key? short_name url, block = Psych.domain_types[short_name] - block.call "http://#{url}:#{short_name}", result + return block.call "http://#{url}:#{short_name}", result end end result -- cgit v1.2.3