Sha256: 449310cbdd273b3c44942c3e7b63d0fbebc45b3c2aab2b9fdc4eac30087458ef
Contents?: true
Size: 524 Bytes
Versions: 3
Compression:
Stored size: 524 Bytes
Contents
require 'contracts' module Rakuna module Provides module Output include Contracts Contract None => Array def content_types_provided @content_types_provided ||= [] end Contract None => String def output '' end Contract None => Symbol def output_method @output_method ||= content_types_provided.select do |content_type| content_type.first == response.headers['Content-Type'] end.flatten.last end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rakuna-core-1.0.2 | lib/rakuna/provides/output.rb |
rakuna-core-1.0.1 | lib/rakuna/provides/output.rb |
rakuna-core-1.0.0 | lib/rakuna/provides/output.rb |