| 1 | package Dash::Dependencies::DashDependency; | ||
| 2 | |||
| 3 | use Moo; | ||
| 4 | use strictures 2; | ||
| 5 | use namespace::clean; | ||
| 6 | use overload | ||
| 7 | '""' => "_stringify"; | ||
| 8 | |||
| 9 | has component_id => ( is => 'ro' ); | ||
| 10 | |||
| 11 | has component_property => ( is => 'ro' ); | ||
| 12 | |||
| 13 | sub _stringify { | ||
| 14 | my $self = shift; | ||
| 15 | return $self->component_id . "." . $self->component_property; | ||
| 16 | } | ||
| 17 | |||
| 18 | 1; | ||
| 19 | |||
| 20 | __END__ |