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

version 0.21

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

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

This is how this class implements the required interfaces from the role CatalystX::Features::Role::Feature.
For a feature directory of "my.feature_1.0", the id part is "my.feature_1.0".
For a feature directory of "my.feature_1.0", the name is "my.feature".
For a feature directory of "my.feature_1.0", the version is "1.0".
A version long integer that can be compared easily. For a feature directory of "my.feature_1.2.3", the version number equals 001002003.

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.

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

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