4 ms·
Sorry, it wasn't a proc object, it was a block. The following is a potential fix, but it's irritating to have to write it. blk = lambda { |arg1, arg2| #
by DanWaterworth 15y ago
Sorry, it wasn't a proc object, it was a block. The following is a potential fix, but it's irritating to have to write it.
blk = lambda { |arg1, arg2|
# do something
}
obj.some_method(&blk)