Class: TableSync::Utils::ProcArray

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

Instance Method Summary collapse

Constructor Details

#initializeProcArray

Returns a new instance of ProcArray.



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

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

Instance Method Details

#call(*args) ⇒ Object



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

def call(*args, &)
  super(@array, args, &)
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