summaryrefslogtreecommitdiff
path: root/ext/psych/lib/psych/deprecated.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-16 20:27:51 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-16 20:27:51 +0000
commit2db7b7f3fe7de2b518d46ea11c26875f86d26136 (patch)
tree063260cf9c6da1074cbf3d7413b173206b5cb8f5 /ext/psych/lib/psych/deprecated.rb
parent039219b2c978641d96fe28ba451148b0425ffd4e (diff)
* ext/psych/lib/psych/coder.rb (scalar): supporting deprecated methods
* ext/psych/lib/psych/deprecated.rb: supporting deprecated to_yaml_properties method git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/psych/lib/psych/deprecated.rb')
-rw-r--r--ext/psych/lib/psych/deprecated.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/psych/lib/psych/deprecated.rb b/ext/psych/lib/psych/deprecated.rb
index c0c9abef7a..26e431dd81 100644
--- a/ext/psych/lib/psych/deprecated.rb
+++ b/ext/psych/lib/psych/deprecated.rb
@@ -1,6 +1,8 @@
require 'date'
module Psych
+ DEPRECATED = __FILE__ # :nodoc:
+
module DeprecatedMethods # :nodoc:
attr_accessor :taguri
attr_accessor :to_yaml_style
@@ -19,3 +21,9 @@ module Psych
target.psych_to_yaml unless opts[:nodump]
end
end
+
+class Object
+ def to_yaml_properties # :nodoc:
+ instance_variables
+ end
+end