Skip to content
This repository was archived by the owner on Dec 7, 2022. It is now read-only.
This repository was archived by the owner on Dec 7, 2022. It is now read-only.

Implement attribute triggers #21

@schwern

Description

@schwern

From Moose...

       trigger => $code
           The trigger option is a CODE reference which will be called
           after the value of the attribute is set. The CODE ref is passed
           the instance itself, the updated value, and the original value
           if the attribute was already set.

           You can have a trigger on a read-only attribute.

           NOTE: Triggers will only fire when you assign to the attribute,
           either in the constructor, or using the writer. Default and
           built values will not cause the trigger to be fired.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions