| 1 | package Dash::Dependencies; | ||
| 2 | |||
| 3 | use warnings; | ||
| 4 | use strict; | ||
| 5 | use utf8; | ||
| 6 | |||
| 7 | use Dash::Dependencies::Output; | ||
| 8 | use Dash::Dependencies::Input; | ||
| 9 | use Dash::Dependencies::State; | ||
| 10 | |||
| 11 | sub Output { | ||
| 12 | shift; | ||
| 13 | my @params = @_; | ||
| 14 | if ( scalar @_ == 2 ) { | ||
| 15 | @params = ( component_id => $_[0], component_property => $_[1] ); | ||
| 16 | } | ||
| 17 | return Dash::Dependencies::Output->new(@params); | ||
| 18 | } | ||
| 19 | |||
| 20 | sub Input { | ||
| 21 | shift; | ||
| 22 | my @params = @_; | ||
| 23 | if ( scalar @_ == 2 ) { | ||
| 24 | @params = ( component_id => $_[0], component_property => $_[1] ); | ||
| 25 | } | ||
| 26 | return Dash::Dependencies::Input->new(@params); | ||
| 27 | |||
| 28 | } | ||
| 29 | |||
| 30 | sub State { | ||
| 31 | shift; | ||
| 32 | my @params = @_; | ||
| 33 | if ( scalar @_ == 2 ) { | ||
| 34 | @params = ( component_id => $_[0], component_property => $_[1] ); | ||
| 35 | } | ||
| 36 | return Dash::Dependencies::State->new(@params); | ||
| 37 | } | ||
| 38 | |||
| 39 | 1; | ||
| 40 | |||
| 41 | __END__ |