Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Mo::exports(3)	      User Contributed Perl Documentation	Mo::exports(3)

Name
       Mo::exporter - Export the @EXPORT list

Synopsis
	   package MyMo;
	   # use Mo qw[exporter	import];

	   package SomeClass;
	   use MyMo;

	   has foo => (builder => 'build_foo');

Description
       If you are defining your	own Mo class for a project, and	you want it to
       always use a default set	of features, you should	add "import" to	the
       end of the list.	Then by	calling:

	   use MyMo;

       you get the default set:	"default" and "builder". If you	just want
       "default", do this:

	   use MyMo 'default';

       If you want no features for a particular	class, use:

	   use MyMo '';

Note
       This feature is probably	not useful, and	possibly problematic, outside
       of Mo::Inline usage.

perl v5.24.1			  2016-07-06			Mo::exports(3)

Name | Synopsis | Description | Note

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Mo::exports&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help