-
-
06 Jul 2016 22:11:23 UTC
- Distribution: Mo
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (12)
- Testers (9283 / 7 / 0)
- Kwalitee
Bus factor: 2- 93.85% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (39.19KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- none
- Reverse dependencies
- CPAN Testers List
- Dependency graph
SYNOPSIS
In your Mo module:
# This is effectively your own private Mo(ose) setup package MyModule::Mo; # use Mo qw'build builder default import'; 1;
From the command line:
> mo-inline lib/MyModule/Mo.pm
or:
> mo-inline lib/
or (if you are really lazy):
> mo-inline
Then from another module:
package MyModule::Foo; use MyModule::Mo; # gets build, builder and default automatically
DESCRIPTION
Mo is so small that you can easily inline it, along with any feature modules. Mo provides a script called
mo-inline
that will do it for you.All you need to do is comment out the line that uses Mo, and run
mo-inline
on the file.mo-inline
will find such comments and do the inlining for you. It will also replace any old inlined Mo with the latest version.What Mo could you possibly want?
AUTOMATIC FEATURES
By using the Mo::import feature, all uses of your Mo class will turn on all the features you specified. You can override it if you want, but that will be the default.
REAL WORLD EXAMPLES
For real world examples of Mo inlined using
mo-inline
, see YAML::Mo, Pegex::Mo and TestML::Mo.Module Install Instructions
To install Mo, copy and paste the appropriate command in to your terminal.
cpanm Mo
perl -MCPAN -e shell install Mo
For more information on module installation, please visit the detailed CPAN module installation guide.