logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Bread::Board::Service::WithClass - role for services returning instances of a given class

Attributes

"class"
       Read/write string attribute, the name of the class that this service will probably instantiate.

Author

       Stevan Little <stevan@iinteractive.com>

Bugs

       Please report any bugs or feature requests on the bugtracker website
       https://github.com/stevan/BreadBoard/issues

       When submitting a bug or request, please include a test-file or a patch to an existing test-file that
       illustrates the bug or desired feature.

Description

       This a sub-role of Bread::Board::Service for services that return instances of a given class.

Methods

"has_class"
       Predicate for the "class" attribute, true if it has been set.

   "get"
       This role adds a "before" modifier to the "get" method, ensuring that the module implementing the "class"
       is loaded.

Name

       Bread::Board::Service::WithClass - role for services returning instances of a given class

Version

       version 0.37

See Also