Class: Tap::Tasks::Load::Yaml

Inherits:
Tap::Tasks::Load show all
Defined in:
lib/tap/tasks/load/yaml.rb

Overview

:startdoc::task loads data as YAML

Loads data from the input IO as YAML.

% tap load/yaml "{key: value}" --: dump/yaml
--- 
key: value

Instance Method Summary collapse

Instance Method Details

#load(io) ⇒ Object

Loads data from io as YAML.



18
19
20
# File 'lib/tap/tasks/load/yaml.rb', line 18

def load(io)
  YAML.load(io)
end