NAME

Wrap::Sub::Child - Provides for Wrap::Sub

METHODS

Please refer to the Wrap::Sub parent module for full documentation. The descriptions here are just a briefing.

new

This method can only be called by the parent Wrap::Sub module.

called

Returns bool whether the wrapped sub has been called yet.

called_with

Returns a list of arguments the wrapped sub was called with.

wrap

This method should only be called by the parent wrap object. You shouldn't be calling this.

rewrap

Re-wraps an unwrapped sub back to the same subroutine it was originally wrapped with.

is_wrapped

Returns bool whether the sub the object represents is currently wrapped or not.

name

Returns the name of the sub this object is wraping.

pre

Send in a code reference containing actions you want performed before the wrapped sub is called.

post

Send in a code reference containing actions you want performed after the wrapped sub is called.

reset

Resets all state of the object back to default (does not unwrap the sub).

unwrap

Restores original functionality of the wrapped sub, and calls reset() on the object.