Flowdock
method

load

Importance_1
v1_9_3_125 - Show latest stable - 0 notes - Class: Psych
load(yaml) public

Load yaml in to a Ruby data structure. If multiple documents are provided, the object contained in the first document will be returned.

Example:

Psych.load("--- a")           # => 'a'
Psych.load("---\n - a\n - b") # => ['a', 'b']
Show source
Register or log in to add new notes.