Method: Psych.load_documents

Defined in:
lib/psych/deprecated.rb

.load_documents(yaml, &block) ⇒ Object

This method is deprecated, use Psych.load_stream instead.



26
27
28
29
30
31
32
33
# File 'lib/psych/deprecated.rb', line 26

def self.load_documents yaml, &block
  if $VERBOSE
    warn "#{caller[0]}: load_documents is deprecated, use load_stream"
  end
  list = load_stream yaml
  return list unless block_given?
  list.each(&block)
end