Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    MooseX::Types::Path::Class 0.05

    Download button

    No screenshots available
    Downloads: 176  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Todd Hepler | More programs
    Perl Artistic License / FREE
    January 27th, 2011, 04:59 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    MooseX::Types::Path::Class description

    A Path::Class type library for Moose

    MooseX::Types::Path::Class is a Perl module that creates common Moose types, coercions and option specifications useful for dealing with Path::Class objects as Moose attributes.

    Coercions (see Moose::Util::TypeConstraints) are made from both 'Str' and 'ArrayRef' to both Path::Class::Dir and Path::Class::File objects. If you have MooseX::Getopt installed, the Getopt option type ("=s") will be added for both Path::Class::Dir and Path::Class::File.

    SYNOPSIS

     package MyClass;
     use Moose;
     use MooseX::Types::Path::Class;
     with 'MooseX::Getopt'; # optional

     has 'dir' => (
     is => 'ro',
     isa => 'Path::Class::Dir',
     required => 1,
     coerce => 1,
     );

     has 'file' => (
     is => 'ro',
     isa => 'Path::Class::File',
     required => 1,
     coerce => 1,
     );

     # these attributes are coerced to the
     # appropriate Path::Class objects
     MyClass->new( dir => '/some/directory/', file => '/some/file' );



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Path::Class library | Perl module | Path::Class | type | library

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM