Make object's methods yieldable