The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package Perl::Analysis::Static::Element::Sub;

use Moose;

extends 'Perl::Analysis::Static::Element';

has 'name' => ( is => 'rw', isa => 'Str' );

=head2 stringify

TODO:

tell me if it's a function or a method.
tell me the arguments.
show me the body.

=cut

sub stringify {
    my ($self) = @_;
    return $self->from.'-'.$self->to.': '.$self->name();
}

1;