summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-11-17 21:36:20 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2009-11-17 21:36:20 -0800
commit3a2e7c38729bb450325102ab31746732d884d11b (patch)
treec6276e833da459551a629d666bbd0f564bdd67df /lib
parent44bfff0204555e6a9d8bd764d9ee68bb47e0bffd (diff)
downloadpsych-3a2e7c38729bb450325102ab31746732d884d11b.zip
fixing more tests
Diffstat (limited to 'lib')
-rw-r--r--lib/psych/visitors/to_ruby.rb4
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