diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-11-17 21:36:20 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-11-17 21:36:20 -0800 |
commit | 3a2e7c38729bb450325102ab31746732d884d11b (patch) | |
tree | c6276e833da459551a629d666bbd0f564bdd67df | |
parent | 44bfff0204555e6a9d8bd764d9ee68bb47e0bffd (diff) | |
download | psych-3a2e7c38729bb450325102ab31746732d884d11b.zip |
fixing more tests
-rw-r--r-- | lib/psych/visitors/to_ruby.rb | 4 |
1 files 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 |