module Readme::ContentTypeHelper

Constants

JSON_MIME_TYPES

Assumes the includer has a `content_type` method defined.

Public Instance Methods

json?() click to toggle source
# File lib/readme/content_type_helper.rb, line 13
def json?
  JSON_MIME_TYPES.any? { |mime_type| content_type.include?(mime_type) }
end