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  -  CLASS::COMPONENT::COMPONENT::MOOSENIZE (3)

.ds Aq ’

NAME

Class::Component::Component::Moosenize - you can Moose like Plugin code

CONTENTS

SYNOPSIS

EXPORT METHODS

requires, with


  package MyApp;
  use Class::Component;
  __PACKAGE__->load_components(qw/ Moosenize /);

  package MyApp::Plugin;
  use base Class::Component::Plugin;
  use MyApp::Role;
  requires foo;
  requires bar => [Method], baz => [+Foo::MyAttribute];
  requires hop => +{ Method => jump };

  package MyApp::Role;

  package MyApp::Role::Blah;
  use MyApp::Role;
  requires blah;

  package MyApp::Plugin::Hoge;
  use base qw( MyApp::Plugin  );
  use MyApp::Role;
  with MyApp::Role::Blah;

  sub foo { # simple method
  }

  sub bar { # same "sub bar :Method {"
  }

  sub baz { # same "sub baz :+Foo::MyAttribute {"
  }

  sub hop { # same "sub hop :Method(jump) {"
  }

  sub blah { # simple method
  }



before after around See also Moose and Moose::Role

AUTHOR

Kazuhiro Osawa <ko@yappo.ne.jp>

SEE ALSO

Class::Component, Moose, Moose::Role, Class::MOP

LICENSE

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 CLASS::COMPONENT::COMPONENT::MOOSENIZE (3) 2008-05-12

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