Did I mention that I'm rubbish at naming things. I'll start caring about that when...
[catagits/CatalystX-DynamicComponent.git] / lib / SomeModelClass.pm
CommitLineData
7d26c84b 1package SomeModelClass;
2use Moose;
8c228ad4 3use CatalystX::ControllerGeneratingModel;
046d763d 4use namespace::autoclean;
7d26c84b 5
6# Note trivial calling convention.
7# Apply MX::Method::Signatures and MX::Types::Structured to be less lame.
8
9# Introspection should only reflect methods which satisfy the calling convention
10# This is left as an exercise to the reader. :)
11
8c228ad4 12command say_hello => sub {
7d26c84b 13 my ($self, $name) = @_;
14 return("Hello $name");
8c228ad4 15};
7d26c84b 16
17__PACKAGE__->meta->make_immutable;
18