debian man page for mouse::exporter

Query: mouse::exporter

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Mouse::Exporter(3pm)					User Contributed Perl Documentation				      Mouse::Exporter(3pm)

NAME
Mouse::Exporter - make an import() and unimport() just like Mouse.pm
VERSION
This document describes Mouse version 0.99
SYNOPSIS
package MyApp::Mouse; use Mouse (); use Mouse::Exporter; Mouse::Exporter->setup_import_methods( as_is => [ 'has_rw', 'other_sugar', &Some::Random::thing ], also => 'Mouse', ); sub has_rw { my $meta = caller->meta; my ( $name, %options ) = @_; $meta->add_attribute( $name, is => 'rw', %options, ); } # then later ... package MyApp::User; use MyApp::Mouse; has 'name'; has_rw 'size'; thing; no MyApp::Mouse;
DESCRIPTION
This module encapsulates the exporting of sugar functions in a "Mouse.pm"-like manner. It does this by building custom "import", "unimport" methods for your module, based on a spec you provide. Note that "Mouse::Exporter" does not provide the "with_meta" option, but you can easily get the metaclass by "caller->meta" as "SYNOPSIS" shows.
METHODS
"setup_import_methods( ARGS )" "build_import_methods( ARGS ) -> (&import, &unimport)"
SEE ALSO
Moose::Exporter perl v5.14.2 2012-06-30 Mouse::Exporter(3pm)
Related Man Pages
moose::cookbook::extending::recipe3(3) - osx
moose::cookbook::extending::mooseish_moosesugar(3pm) - debian
mouse::object(3pm) - debian
mouse::spec(3pm) - debian
sdl::mouse(3pm) - debian
Similar Topics in the Unix Linux Community
MX 1000 Laser Mouse Driver 0.1.4 (Default branch)
SUN Type 7 Keyboard, Thinklogical KVM Extender and Mouse - Any ideas?
Apple Magic Mouse: Up or down scrolling and swiping do not work with on Windows with Boot Camp
Another "Cat and Mouse fight" or... Tracking down a botnet
Apple's Magic Mouse scrolling not working in RHEL 6