1Mo::Inline(3)         User Contributed Perl Documentation        Mo::Inline(3)
2
3
4

SYNOPSIS

6       In your Mo module:
7
8           # This is effectively your own private Mo(ose) setup
9           package MyModule::Mo;
10           # use Mo qw'build builder default import';
11           1;
12
13       From the command line:
14
15           > mo-inline lib/MyModule/Mo.pm
16
17       or:
18
19           > mo-inline lib/
20
21       or (if you are really lazy):
22
23           > mo-inline
24
25       Then from another module:
26
27           package MyModule::Foo;
28           use MyModule::Mo;       # gets build, builder and default automatically
29

DESCRIPTION

31       Mo is so small that you can easily inline it, along with any feature
32       modules.  Mo provides a script called "mo-inline" that will do it for
33       you.
34
35       All you need to do is comment out the line that uses Mo, and run
36       "mo-inline" on the file. "mo-inline" will find such comments and do the
37       inlining for you.  It will also replace any old inlined Mo with the
38       latest version.
39
40       What Mo could you possibly want?
41

AUTOMATIC FEATURES

43       By using the Mo::import feature, all uses of your Mo class will turn on
44       all the features you specified. You can override it if you want, but
45       that will be the default.
46

REAL WORLD EXAMPLES

48       For real world examples of Mo inlined using "mo-inline", see YAML::Mo,
49       Pegex::Mo and TestML::Mo.
50
51
52
53perl v5.34.0                      2022-01-21                     Mo::Inline(3)
Impressum