support/ruby/collins-client/lib/collins/simple_callback.rb
# Call the callback block with the specified arguments
#
# @see Proc
# @param [Array<Object>] args - Arguments for callback
# @return [Object] Value from callback
# @raise [NameError] if block wasn't specified but call was executed
Call the callback block with the specified arguments
Call the callback block with the specified arguments
def call *args
      block.map do |b|
        b.call(*args)
      end.get
    end
def call * args block . map do | b | b . call ( * args ) end . get end
Call the callback block with the specified arguments
Call the callback block with the specified arguments
Value from callback
Value from callback
Object
[NameError] if block wasn't specified but call was executed
[ NameError ] if block wasn ' t specified but call was executed
args
Arguments for callback
Arguments for callback
see
None