Sha256: fa6e9b8e0961764187a5459bff1f1864754bdf676a4a1168e509314573994106

Contents?: true

Size: 496 Bytes

Versions: 9

Compression:

Stored size: 496 Bytes

Contents

# frozen_string_literal: true

module Arel # :nodoc: all
  module Collectors
    class Bind
      attr_accessor :retryable

      def initialize
        @binds = []
      end

      def <<(str)
        self
      end

      def add_bind(bind)
        @binds << bind
        self
      end

      def add_binds(binds, proc_for_binds = nil)
        @binds.concat proc_for_binds ? binds.map(&proc_for_binds) : binds
        self
      end

      def value
        @binds
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
activerecord-7.2.2 lib/arel/collectors/bind.rb
activerecord-7.2.1.2 lib/arel/collectors/bind.rb
activerecord-7.2.1.1 lib/arel/collectors/bind.rb
activerecord-7.2.1 lib/arel/collectors/bind.rb
activerecord-7.2.0 lib/arel/collectors/bind.rb
activerecord-7.2.0.rc1 lib/arel/collectors/bind.rb
activerecord-7.2.0.beta3 lib/arel/collectors/bind.rb
activerecord-7.2.0.beta2 lib/arel/collectors/bind.rb
activerecord-7.2.0.beta1 lib/arel/collectors/bind.rb