Class: TableSync::Utils::ProcArray

Inherits:
Proc
  • Object
show all
Defined in:
lib/table_sync/utils/proc_array.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ ProcArray

Returns a new instance of ProcArray.



4
5
6
7
# File 'lib/table_sync/utils/proc_array.rb', line 4

def initialize(&block)
  @array = []
  super(&block)
end

Instance Method Details

#call(*args, &block) ⇒ Object



14
15
16
# File 'lib/table_sync/utils/proc_array.rb', line 14

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

#push(&block) ⇒ Object



9
10
11
12
# File 'lib/table_sync/utils/proc_array.rb', line 9

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