summaryrefslogtreecommitdiffstats
path: root/lib/yaml.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-26 08:18:33 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-26 08:18:33 +0000
commita40eddf6699eb698da577b95b11828203e10c5db (patch)
tree111950ffa863cdcb49feb3ca4a4eea99c491e69c /lib/yaml.rb
parent9422e45a216c6914b961a7082afff6aa71851bd9 (diff)
downloadruby-a40eddf6699eb698da577b95b11828203e10c5db.tar.gz
ruby-a40eddf6699eb698da577b95b11828203e10c5db.tar.xz
ruby-a40eddf6699eb698da577b95b11828203e10c5db.zip
* eval.c (ev_const_get): fixed a bug in constant reference during
instance_eval. [yarv-dev:707] * eval.c (ev_const_defined): ditto. * lib/yaml.rb (YAML::add_domain_type): typo fixed. a patch from Joel VanderWerf <vjoel at path.berkeley.edu>. [ruby-talk:165285] [ruby-core:6995] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/yaml.rb')
-rw-r--r--lib/yaml.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yaml.rb b/lib/yaml.rb
index 3130ad115..fe8335c8f 100644
--- a/lib/yaml.rb
+++ b/lib/yaml.rb
@@ -310,7 +310,7 @@ module YAML
#
# Add a transfer method for a builtin type
#
- def YAML.add_ruby_type( type, &transfer_proc )
+ def YAML.add_ruby_type( type_tag, &transfer_proc )
resolver.add_type( "tag:ruby.yaml.org,2002:#{ type_tag }", transfer_proc )
end