Sha256: 49c7988088d0d88b4c3a4c3c62c0d955c27b9eedc2c531d0ce8b221ceaffb3a3

Contents?: true

Size: 205 Bytes

Versions: 7

Compression:

Stored size: 205 Bytes

Contents

module Grape
  module Formatter
    module Txt
      class << self
        def call(object, env)
          object.respond_to?(:to_txt) ? object.to_txt : object.to_s
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
grape-security-0.8.0 lib/grape/formatter/txt.rb
grape-0.11.0 lib/grape/formatter/txt.rb
grape-0.10.1 lib/grape/formatter/txt.rb
grape-0.10.0 lib/grape/formatter/txt.rb
grape-0.9.0 lib/grape/formatter/txt.rb
grape-0.8.0 lib/grape/formatter/txt.rb
grape-0.7.0 lib/grape/formatter/txt.rb