Skip to content

Instantly share code, notes, and snippets.

@hokaccha
Created February 18, 2010 13:56
Show Gist options
  • Save hokaccha/307671 to your computer and use it in GitHub Desktop.
Save hokaccha/307671 to your computer and use it in GitHub Desktop.
package Test::Models;
use strict;
use warnings;
use Ark::Models -base;
register foo => sub {
my $self = shift;
$self->get('conf');
};
__PACKAGE__->get('foo');
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment