Class: Tap::Tasks::Load::Yaml
- Inherits:
-
Tap::Tasks::Load
- Object
- Tap::Tasks::Load
- Tap::Tasks::Load::Yaml
- 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
-
#load(io) ⇒ Object
Loads data from io as YAML.
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 |