1 package SomeModelClassInterface;
3 use namespace::autoclean;
7 package SomeModelClass;
9 use CatalystX::ControllerGeneratingModel;
10 use namespace::autoclean;
12 # Note trivial calling convention.
13 # Apply MX::Method::Signatures and MX::Types::Structured to be less lame.
15 # Introspection should only reflect methods which satisfy the calling convention
16 # This is left as an exercise to the reader. :)
18 command say_hello => sub {
19 my ($self, $name) = @_;
20 return("Hello $name");
23 with 'SomeModelClassInterface';
25 __PACKAGE__->meta->make_immutable;