Class::MOP::Class

Class::MOP::Class is a Class Meta Object.
Download

Class::MOP::Class Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Stevan Little
  • Publisher web site:
  • http://search.cpan.org/~stevan/Devel-StrictObjectHash-0.01/lib/Devel/StrictObjectHash.pm

Class::MOP::Class Tags


Class::MOP::Class Description

Class::MOP::Class is a Class Meta Object. Class::MOP::Class is a Class Meta Object.SYNOPSIS # assuming that class Foo # has been defined, you can # use this for introspection ... # add a method to Foo ... Foo->meta->add_method('bar' => sub { ... }) # get a list of all the classes searched # the method dispatcher in the correct order Foo->meta->class_precedence_list() # remove a method from Foo Foo->meta->remove_method('bar'); # or use this to actually create classes ... Class::MOP::Class->create('Bar' => ( version => '0.01', superclasses => , attributes => , methods => { calculate_bar => sub { ... }, construct_baz => sub { ... } } ));This is the largest and currently most complex part of the Perl 5 meta-object protocol. It controls the introspection and manipulation of Perl 5 classes (and it can create them too). The best way to understand what this module can do, is to read the documentation for each of it's methods. Requirements: · Perl


Class::MOP::Class Related Software