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
MouseX::Types::Path::Class(3) User Contributed Perl Documentation MouseX::Types::Path::Class(3)
 

MouseX::Types::Path::Class - A Path::Class type library for Mouse

  package MyApp;
  use Mouse;
  use MouseX::Types::Path::Class;
  has 'dir' => (
      is       => 'ro',
      isa      => 'Path::Class::Dir',
      required => 1,
      coerce   => 1,
  );
  has 'file' => (
      is       => 'ro',
      isa      => 'Path::Class::File',
      required => 1,
      coerce   => 1,
  );

  package MyApp;
  use Mouse;
  use MouseX::Types::Path::Class qw(Dir File);
  has 'dir' => (
      is       => 'ro',
      isa      => Dir,
      required => 1,
      coerce   => 1,
  );
  has 'file' => (
      is       => 'ro',
      isa      => File,
      required => 1,
      coerce   => 1,
  );

MouseX::Types::Path::Class creates common Mouse types, coercions and option specifications useful for dealing with Path::Class objects as Mouse attributes.
Coercions (see Mouse::Util::TypeConstraints) are made from both "Str" and "ArrayRef" to both Path::Class::Dir and Path::Class::File objects. If you have MouseX::Getopt installed, the Getopt option type ("=s") will be added for both Path::Class::Dir and Path::Class::File.

A Path::Class::Dir class type.
Coerces from "Str" and "ArrayRef" via "new" in Path::Class::Dir.

A Path::Class::File class type.
Coerces from "Str" and "ArrayRef" via "new" in Path::Class::File.

NAKAGAWA Masaki <masaki@cpan.org>

"AUTHOR" in MooseX::Types::Path::Class

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

Mouse, MouseX::Types,
Path::Class,
MooseX::Types::Path::Class
2012-04-01 perl v5.28.1

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

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