blob: a48cf9b83dbef4e1676ca55abedcb2c3df9125f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package Narwhal::Component::Role::Wiki;
use Moose::Role;
has kioku => (
isa => 'KiokuX::Model',
required => 1,
handles => 'KiokuDB::Role::API',
);
has tt => (
isa => 'OX::View::TT',
required => 1,
handles => ['render'],
);
has scope => (
is => 'ro',
isa => 'KiokuDB::LiveObjects::Scope',
lazy => 1,
default => sub { shift->new_scope },
);
sub BUILD { }
after BUILD => sub {
my $self = shift;
$self->scope;
};
no Moose::Role;
1;
|