Sha256: 192c6d74eb12070096be1782884ac208aadee73f65b16ea9dfedc8d57c09253a

Contents?: true

Size: 324 Bytes

Versions: 3

Compression:

Stored size: 324 Bytes

Contents

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

3 entries across 3 versions & 2 rubygems

Version Path
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.2.5/lib/grape/util/reverse_stackable_values.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/grape-1.2.5/lib/grape/util/reverse_stackable_values.rb
grape-1.2.5 lib/grape/util/reverse_stackable_values.rb