зеркало из https://github.com/github/ruby.git
* ext/psych/lib/psych/visitors/yaml_tree.rb: adding backwards
compatible YAMLTree.new method git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
9ecdb32144
Коммит
3f51cff4f9
|
@ -1,3 +1,8 @@
|
|||
Wed May 15 03:56:09 2013 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||
|
||||
* ext/psych/lib/psych/visitors/yaml_tree.rb: adding backwards
|
||||
compatible YAMLTree.new method
|
||||
|
||||
Wed May 15 02:22:16 2013 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||
|
||||
* ext/psych/lib/psych.rb: Adding Psych.safe_load for loading a user
|
||||
|
|
|
@ -47,6 +47,13 @@ module Psych
|
|||
new(emitter, ss, options)
|
||||
end
|
||||
|
||||
def self.new emitter = nil, ss = nil, options = nil
|
||||
return super if emitter && ss && options
|
||||
|
||||
warn "This API is deprecated, please pass an emitter, scalar scanner, and options or call #{self.class}.create() (#{caller.first})"
|
||||
create emitter, ss
|
||||
end
|
||||
|
||||
def initialize emitter, ss, options
|
||||
super()
|
||||
@started = false
|
||||
|
|
Загрузка…
Ссылка в новой задаче