summaryrefslogtreecommitdiff
path: root/ext/psych/lib/psych/deprecated.rb
diff options
context:
space:
mode:
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