Inherits from NSObject
Declared in RACBlockTrampoline.h
RACBlockTrampoline.m

Overview

Allows a limited type of dynamic block invocation.

Class Methods

invokeBlock:withArguments:

Invokes the given block with the given arguments. All of the block’s argument types must be objects and it must be typed to return an object.

+ (id)invokeBlock:(id)block withArguments:(RACTuple *)arguments

Discussion

At this time, it only supports blocks that take up to 15 arguments. Any more is just cray.

block - The block to invoke. Must accept as many arguments as are given in the arguments array. Cannot be nil. arguments - The arguments with which to invoke the block. RACTupleNils will be passed as nils.

Returns the return value of invoking the block.

Declared In

RACBlockTrampoline.h