method

load_stream

v1_9_3_125 - Show latest stable - Class: Psych
load_stream(yaml)
public

Load multiple documents given in yaml. Returns the parsed documents as a list. For example:

Psych.load_stream("--- foo\n...\n--- bar\n...") # => ['foo', 'bar']