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  -  MOOSEX::METADESCRIPTION::META::CLASS (3)

.ds Aq ’

NAME

MooseX::MetaDescription::Meta::Class - Custom class metaclass for meta-descriptions

CONTENTS

SYNOPSIS



  package Foo;
  use metaclass MooseX::MetaDescription::Meta::Class => (
      description => {
          Hello => World,
      }
  );
  use Moose;
 
  package Bar;
  use Moose;
 
  extends Foo;
 
  # always add it *after* the extends
  __PACKAGE__->meta->description->{Hello} = Earth;
 
  package Baz;
  use Moose;
 
  extends Bar;
 
  package Gorch;
  use metaclass MooseX::MetaDescription::Meta::Class => (
      description => {
          Hello => World
      }
  );   
  use Moose;

  extends Baz; 

  # ...
 
  Foo->meta->description # { Hello => World, World => Hello }
  Bar->meta->description # { Hello => Earth, World => Hello } # change one, inherit the other 
  Baz->meta->description # { Hello => Earth, World => Hello } # inherit both
  Gorch->meta->description # { Hello => World } # overrides all, no inheritance



DESCRIPTION

This module provides the custom metaclass to add Meta Descriptions to your classes. It provides a limited degree of inheritance of meta-descriptions, the details of which are shown above in the SYNOPSIS section.

METHODS

NOTE: these are methods composed into this class from MooseX::MetaDescription::Meta::Trait refer to that module for the complete description.
<B>descriptionB>
<B>metadescription_classnameB>
<B>metadescriptionB>
<B>metaB>

BUGS

All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.

AUTHOR

Stevan Little <stevan.little@iinteractive.com>

COPYRIGHT AND LICENSE

Copyright 2008 Infinity Interactive, Inc.

<http://www.iinteractive.com>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

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


perl v5.20.3 MOOSEX::METADESCRIPTION::META::CLASS (3) 2012-12-11

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