| 1 | package Dash::DependenciesFunctions; | ||
| 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 | use Exporter::Auto; | ||
| 11 | |||
| 12 | sub Output { | ||
| 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 | my @params = @_; | ||
| 22 | if ( scalar @_ == 2 ) { | ||
| 23 | @params = ( component_id => $_[0], component_property => $_[1] ); | ||
| 24 | } | ||
| 25 | return Dash::Dependencies::Input->new(@params); | ||
| 26 | |||
| 27 | } | ||
| 28 | |||
| 29 | sub State { | ||
| 30 | my @params = @_; | ||
| 31 | if ( scalar @_ == 2 ) { | ||
| 32 | @params = ( component_id => $_[0], component_property => $_[1] ); | ||
| 33 | } | ||
| 34 | return Dash::Dependencies::State->new(@params); | ||
| 35 | } | ||
| 36 | |||
| 37 | 1; | ||
| 38 | |||
| 39 | __END__ |