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