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

Implement attribute triggers #21

Open
schwern opened this issue Apr 3, 2014 · 1 comment
Open

Implement attribute triggers #21

schwern opened this issue Apr 3, 2014 · 1 comment

Comments

@schwern
Copy link
Contributor

schwern commented Apr 3, 2014

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.
@tobyink
Copy link

tobyink commented Jul 2, 2022

I've moved the Mite issue tracker here.

This is now implemented.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants