Sha256: 8e5d3e3cede92d0d6cbeb958f522d13b39880043c8eff6243728fa5e1fc78f94
Contents?: true
Size: 271 Bytes
Versions: 10
Compression:
Stored size: 271 Bytes
Contents
# frozen_string_literal: true module Grape module Formatter module Json class << self def call(object, _env) return object.to_json if object.respond_to?(:to_json) ::Grape::Json.dump(object) end end end end end
Version data entries
10 entries across 10 versions & 2 rubygems