Class: Hotdog::Formatters::Yaml
- Inherits:
-
BaseFormatter
- Object
- BaseFormatter
- Hotdog::Formatters::Yaml
- Defined in:
- lib/hotdog/formatters/yaml.rb
Instance Method Summary collapse
Instance Method Details
#format(result, options = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/hotdog/formatters/yaml.rb', line 8 def format(result, ={}) result = prepare(result) if [:headers] and [:fields] result.unshift([:fields]) end result.to_yaml end |