GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MOUSE::UTIL (3)

.ds Aq ’

NAME

Mouse::Util - Utilities for working with Mouse classes

CONTENTS

VERSION

This document describes Mouse version v2.4.5

SYNOPSIS



    use Mouse::Util; # turns on strict and warnings



DESCRIPTION

This module provides a set of utility functions. Many of these functions are intended for use in Mouse itself or MouseX modules, but some of them may be useful for use in your own code.

IMPLEMENTATIONS FOR

    Moose::Util functions

The following functions are exportable.

find_meta($class_or_obj)

The same as Mouse::Util::class_of().

does_role($class_or_obj, $role_or_obj)

resolve_metaclass_alias($category, $name, %options)

apply_all_roles($applicant, @roles)

english_listi(@items)

    Class::MOP functions

The following functions are not exportable.

Mouse::Util::is_class_loaded($classname) -> Bool

Returns whether $classname is actually loaded or not. It uses a heuristic which involves checking for the existence of $VERSION, @ISA, and any locally-defined method.

Mouse::Util::load_class($classname) -> ClassName

This will load a given $classname (or die if it is not loadable). This function can be used in place of tricks like eval "use $module ()" or using require.

Mouse::Util::class_of($classname_or_object) -> MetaClass

Mouse::Util::get_metaclass_by_name($classname) -> MetaClass

Mouse::Util::get_all_metaclass_instances() -> (MetaClasses)

Mouse::Util::get_all_metaclass_names() -> (ClassNames)

    mro (or MRO::Compat)

get_linear_isa

    Sub::Identify

get_code_info

Mouse specific utilities

not_supported

get_code_package

get_code_ref

SEE ALSO

Moose::Util

Class::MOP

Sub::Identify

mro

MRO::Compat

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MOUSE::UTIL (3) 2016-03-17

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.