Sha256: 3660e03e2ea01e12fbad7e2ef222e5092e36d067275025b6f1db6ff2b4febb45

Contents?: true

Size: 206 Bytes

Versions: 24

Compression:

Stored size: 206 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

24 entries across 24 versions & 2 rubygems

Version Path
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.2.5/lib/grape/formatter/txt.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/grape-1.2.5/lib/grape/formatter/txt.rb
grape-1.2.5 lib/grape/formatter/txt.rb
grape-1.2.4 lib/grape/formatter/txt.rb
grape-1.2.3 lib/grape/formatter/txt.rb
grape-1.2.2 lib/grape/formatter/txt.rb
grape-1.2.1 lib/grape/formatter/txt.rb
grape-1.2.0 lib/grape/formatter/txt.rb
grape-1.1.0 lib/grape/formatter/txt.rb
grape-1.0.3 lib/grape/formatter/txt.rb
grape-1.0.2 lib/grape/formatter/txt.rb
grape-1.0.1 lib/grape/formatter/txt.rb
grape-1.0.0 lib/grape/formatter/txt.rb
grape-0.19.2 lib/grape/formatter/txt.rb
grape-0.19.1 lib/grape/formatter/txt.rb
grape-0.19.0 lib/grape/formatter/txt.rb
grape-0.18.0 lib/grape/formatter/txt.rb
grape-0.17.0 lib/grape/formatter/txt.rb
grape-0.16.2 lib/grape/formatter/txt.rb
grape-0.16.1 lib/grape/formatter/txt.rb