Sha256: d23a1852b19c1057f72e445150f6aa8b7d9beb330d8039f71118964642004382

Contents?: true

Size: 272 Bytes

Versions: 3

Compression:

Stored size: 272 Bytes

Contents

module Grape
  module Validations
    class SingleAttributeIterator < AttributesIterator
      private

      def yield_attributes(resource_params, attrs)
        attrs.each do |attr_name|
          yield resource_params, attr_name
        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/validations/single_attribute_iterator.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/grape-1.2.5/lib/grape/validations/single_attribute_iterator.rb
grape-1.2.5 lib/grape/validations/single_attribute_iterator.rb