Sha256: 041750d068de7b4faf4be6ecad163bc085e88e0e8412170c3b28737b32691f99
Contents?: true
Size: 303 Bytes
Versions: 2
Compression:
Stored size: 303 Bytes
Contents
require 'yaml' module Apitizer module Connection module Format class YAML def mime_type 'application/x-yaml' end def process(data) ::YAML.load(data) rescue raise Error, 'Unable to parse' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
apitizer-0.0.3 | lib/apitizer/connection/format/yaml.rb |
apitizer-0.0.2 | lib/apitizer/connection/format/yaml.rb |