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) ⇒ Object
-
#initialize ⇒ ProcArray
constructor
A new instance of ProcArray.
- #push(&block) ⇒ Object
Constructor Details
#initialize ⇒ ProcArray
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 |