Sha256: 34bdada19a8dad1edf4d8e0b073f0e27ada966c12e6a9a50c232ee42a04c73a1

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

# frozen_string_literal: true

require_relative 'stackable_values'

module Grape
  module Util
    class ReverseStackableValues < StackableValues
      protected

      def concat_values(inherited_value, new_value)
        [].tap do |value|
          value.concat(new_value)
          value.concat(inherited_value)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grape-1.3.0 lib/grape/util/reverse_stackable_values.rb