Sha256: 99d95b0543f1659f561c7a28f63070670e266e2e274911d81237126619b4bb35
Contents?: true
Size: 277 Bytes
Versions: 18
Compression:
Stored size: 277 Bytes
Contents
module Grape module Formatter module Xml class << self def call(object, _env) return object.to_xml if object.respond_to?(:to_xml) raise Grape::Exceptions::InvalidFormatter.new(object.class, 'xml') end end end end end
Version data entries
18 entries across 18 versions & 2 rubygems