1 package Reaction::InterfaceModel::Action::Role::SimpleMethodCall;
4 use Scalar::Util 'blessed';
5 requires '_target_model_method';
11 my $object = $self->target_model;
12 my $method_name = $self->_target_model_method;
13 if(my $method_ref = $object->can($method_name)){
14 return $object->$method_ref();
16 confess("Object ".blessed($object)." doesn't support method ${method_name}");
25 Reaction::InterfaceModel::Action::Role::SimpleMethodCall
31 See L<Reaction::Class> for authors.
35 See L<Reaction::Class> for the license.