Sha256: 9603368153bbad9055b6ddd65721b81cfd1b41d8a8077568e27112ebb77f29aa

Contents?: true

Size: 264 Bytes

Versions: 20

Compression:

Stored size: 264 Bytes

Contents

# frozen_string_literal: true

class TableSync::Utils::ProcArray < Proc
  def initialize(&block)
    @array = []
    super(&block)
  end

  def push(&block)
    @array.push(block)
    self
  end

  def call(*args, &block)
    super(@array, args, &block)
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
table_sync-6.5.1 lib/table_sync/utils/proc_array.rb
table_sync-6.5.0 lib/table_sync/utils/proc_array.rb
table_sync-6.4.2 lib/table_sync/utils/proc_array.rb
table_sync-6.4.1 lib/table_sync/utils/proc_array.rb
table_sync-6.4.0 lib/table_sync/utils/proc_array.rb
table_sync-6.3.0 lib/table_sync/utils/proc_array.rb
table_sync-6.1.0 lib/table_sync/utils/proc_array.rb
table_sync-6.0.4 lib/table_sync/utils/proc_array.rb
table_sync-6.0.3 lib/table_sync/utils/proc_array.rb
table_sync-6.0.2 lib/table_sync/utils/proc_array.rb
table_sync-6.0 lib/table_sync/utils/proc_array.rb
table_sync-5.1.0 lib/table_sync/utils/proc_array.rb
table_sync-5.0.0 lib/table_sync/utils/proc_array.rb
table_sync-4.2.2 lib/table_sync/utils/proc_array.rb
table_sync-4.2.1 lib/table_sync/utils/proc_array.rb
table_sync-4.2.0 lib/table_sync/utils/proc_array.rb
table_sync-4.1.3 lib/table_sync/utils/proc_array.rb
table_sync-4.1.1 lib/table_sync/utils/proc_array.rb
table_sync-4.1.0 lib/table_sync/utils/proc_array.rb
table_sync-4.0.0 lib/table_sync/utils/proc_array.rb