Sha256: bfdf0d30f7cb727384df2a51ba6478b87b4ad7a84d4d287754ed73d47ea4efd7

Contents?: true

Size: 291 Bytes

Versions: 5

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

module Grape
  module Util
    class ReverseStackableValues < StackableValues
      protected

      def concat_values(inherited_value, new_value)
        return inherited_value unless new_value

        new_value + inherited_value
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grape-2.2.0 lib/grape/util/reverse_stackable_values.rb
grape-2.1.3 lib/grape/util/reverse_stackable_values.rb
grape-2.1.2 lib/grape/util/reverse_stackable_values.rb
grape-2.1.1 lib/grape/util/reverse_stackable_values.rb
grape-2.1.0 lib/grape/util/reverse_stackable_values.rb