Class: What::Formatters::YAML
Instance Method Summary collapse
Instance Method Details
#format(hash) ⇒ Object
8 9 10 |
# File 'lib/what/formatters/yaml.rb', line 8 def format(hash) hash.to_yaml end |
#mime ⇒ Object
3 4 5 6 |
# File 'lib/what/formatters/yaml.rb', line 3 def mime #'application/x-yaml' 'text/plain' end |