summaryrefslogtreecommitdiffstats
path: root/lib/IM/Engine/Plugin/Commands/OO/Role.pm
blob: a1586c03aee6e4ca30158b7256c24b33bf4b5d56 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package IM::Engine::Plugin::Commands::OO::Role;
use Moose::Role ();
use Moose::Exporter;

# XXX: ick
*command = \&IM::Engine::Plugin::Commands::OO::command;
Moose::Exporter->setup_import_methods(
    with_caller => ['command'],
    also        => ['Moose::Role'],
    # XXX: roles in moose don't have an attribute metaclass yet
    #attribute_metaclass_roles =>
    #    ['IM::Engine::Plugin::Commands::Trait::Attribute::Command',
    #     'IM::Engine::Plugin::Commands::Trait::Attribute::Formatted'],
    metaclass_roles =>
        ['IM::Engine::Plugin::Commands::Trait::Class::Command',
         'IM::Engine::Plugin::Commands::Trait::Class::Formatted'],
);

1;