Class: Tap::Tasks::Dump::Yaml
- Inherits:
-
Tap::Tasks::Dump
- Object
- Tap::Tasks::Dump
- Tap::Tasks::Dump::Yaml
- Defined in:
- lib/tap/tasks/dump/yaml.rb
Overview
:startdoc::task dumps data as YAML
Dumps workflow results to a file or IO as YAML.
% tap load/yaml "{key: value}" -: dump/yaml
---
key: value
Instance Method Summary collapse
-
#dump(obj, io) ⇒ Object
Dumps the object to io as YAML.
Instance Method Details
#dump(obj, io) ⇒ Object
Dumps the object to io as YAML.
18 19 20 |
# File 'lib/tap/tasks/dump/yaml.rb', line 18 def dump(obj, io) YAML.dump(obj, io) end |