Class: Alf::Support::CSVUtils::ProcIO

Inherits:
Object
  • Object
show all
Defined in:
lib/alf/support/csv_utils.rb

Instance Method Summary collapse

Constructor Details

#initialize(proc = nil, &bl) ⇒ ProcIO

Returns a new instance of ProcIO


27
28
29
# File 'lib/alf/support/csv_utils.rb', line 27

def initialize(proc = nil, &bl)
  @proc = proc || bl
end

Instance Method Details

#call(*args, &bl) ⇒ Object Also known as: <<


31
32
33
# File 'lib/alf/support/csv_utils.rb', line 31

def call(*args, &bl)
  @proc.call(*args, &bl)
end