mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix: r32043 may raise NameError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e6bea8978c
commit
1afe9dbdfd
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ end
|
||||||
class Object
|
class Object
|
||||||
yaml_as "tag:ruby.yaml.org,2002:object"
|
yaml_as "tag:ruby.yaml.org,2002:object"
|
||||||
def to_yaml_style; end
|
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_properties; instance_variables.sort; end
|
||||||
def to_yaml( opts = {} )
|
def to_yaml( opts = {} )
|
||||||
YAML::quick_emit( self, opts ) do |out|
|
YAML::quick_emit( self, opts ) do |out|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue