Class: TableSync::Utils::ProcArray
- Inherits:
-
Proc
- Object
- Proc
- TableSync::Utils::ProcArray
- Defined in:
- lib/table_sync/utils/proc_array.rb
Instance Method Summary collapse
- #call(*args, &block) ⇒ Object
-
#initialize(&block) ⇒ ProcArray
constructor
A new instance of ProcArray.
- #push(&block) ⇒ Object
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 |