summaryrefslogtreecommitdiff
path: root/ext/syck
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-13 07:41:20 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-13 07:41:20 +0000
commit1afe9dbdfd18052c4882b7ba3312945aaf3ae64c (patch)
tree31d109f62de4a5a18887210149801f9d5a2c872a /ext/syck
parente6bea8978c9ec6b69a546f68416dd87dacac8b2a (diff)
Fix: r32043 may raise NameError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck')
-rw-r--r--ext/syck/lib/syck/rubytypes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/syck/lib/syck/rubytypes.rb b/ext/syck/lib/syck/rubytypes.rb
index 90f1cbfacf..eeef156e27 100644
--- a/ext/syck/lib/syck/rubytypes.rb
+++ b/ext/syck/lib/syck/rubytypes.rb
@@ -10,7 +10,7 @@ end
class Object
yaml_as "tag:ruby.yaml.org,2002:object"
def to_yaml_style; end
- undef to_yaml_properties
+ undef to_yaml_properties rescue nil
def to_yaml_properties; instance_variables.sort; end
def to_yaml( opts = {} )
YAML::quick_emit( self, opts ) do |out|