-
-
14 Jul 2017 16:29:41 UTC
- Distribution: DBIx-Class-Candy
- Module version: 0.005003
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (5958 / 0 / 0)
- Kwalitee
Bus factor: 1- 83.09% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (22.49KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Arthur Axel "fREW" Schmidt
NAME
DBIx::Class::Candy::Exports - Create sugar for your favorite ORM, DBIx::Class
SYNOPSIS
package DBIx::Class::Widget; sub create_a_widget { ... } # so you don't depend on ::Candy eval { require DBIx::Class::Candy::Exports; DBIx::Class::Candy::Exports->import; export_methods ['create_a_widget']; export_method_aliases { widget => 'create_a_widget' }; } 1;
The above will make it such that users of your component who use it with DBIx::Class::Candy will have the methods you designate exported into their namespace.
DESCRIPTION
The whole point of this module is to make sugar a first class citizen in the component world that dominates DBIx::Class. I make enough components and like this sugar idea enough that I want to be able to have both at the same time.
IMPORTED SUBROUTINES
export_methods
export_methods [qw( foo bar baz )];
Use this subroutine to define methods that get exported as subroutines of the same name.
export_method_aliases
export_method_aliases { old_method_name => 'new_sub_name', };
Use this subroutine to define methods that get exported as subroutines of a different name.
AUTHOR
Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Arthur Axel "fREW" Schmidt.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install DBIx::Class::Candy, copy and paste the appropriate command in to your terminal.
cpanm DBIx::Class::Candy
perl -MCPAN -e shell install DBIx::Class::Candy
For more information on module installation, please visit the detailed CPAN module installation guide.