NAME

CatalystX::Features::Feature - Class that represents a single feature.

VERSION

version 0.26

SYNOPSIS

foreach my $feature( $c->features ) {
    $c->log->info( $feature->name );  # $feature methods declared here
}

DESCRIPTION

This is the object you get when you list features with $c->features.

METHODS

This is how this class implements the required interfaces from the role CatalystX::Features::Role::Feature.

id

For a feature directory of "my.feature_1.0", the id part is "my.feature_1.0".

name

For a feature directory of "my.feature_1.0", the name is "my.feature".

version

For a feature directory of "my.feature_1.0", the version is "1.0".

version_number

A version long integer that can be compared easily. For a feature directory of "my.feature_1.2.3", the version number equals 001002003.

TODO

Change the base class name thru config

Not everyone want to have this object as a base class for their features. There is a role (interface) already created in case you want to create your own class from scratch.

AUTHORS

Rodrigo de Oliveira (rodrigolive), C<rodrigolive@gmail.com>

LICENSE

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