line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Fey::Role::IsLiteral; |
2
|
|
|
|
|
|
|
|
3
|
28
|
|
|
28
|
|
13456
|
use strict; |
|
28
|
|
|
|
|
54
|
|
|
28
|
|
|
|
|
1075
|
|
4
|
28
|
|
|
28
|
|
125
|
use warnings; |
|
28
|
|
|
|
|
38
|
|
|
28
|
|
|
|
|
705
|
|
5
|
28
|
|
|
28
|
|
121
|
use namespace::autoclean; |
|
28
|
|
|
|
|
46
|
|
|
28
|
|
|
|
|
160
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.42'; |
8
|
|
|
|
|
|
|
|
9
|
28
|
|
|
28
|
|
2050
|
use Moose::Role; |
|
28
|
|
|
|
|
45
|
|
|
28
|
|
|
|
|
169
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
requires 'sql'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub id { |
14
|
0
|
|
|
0
|
0
|
|
return $_[0]->sql('Fey::FakeDBI'); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
1; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# ABSTRACT: A role for things that are literals |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__END__ |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=pod |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 NAME |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Fey::Role::IsLiteral - A role for things that are literals |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 VERSION |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
version 0.42 |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 SYNOPSIS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
use Moose 0.90; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
with 'Fey::Role::IsLiteral'; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 DESCRIPTION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
This role provides an C<id()> method that simply calls C<< |
42
|
|
|
|
|
|
|
$object->sql('Fey::FakeDBI') >>. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 BUGS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
See L<Fey> for details on how to report bugs. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 AUTHOR |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Dave Rolsky <autarch@urth.org> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This software is Copyright (c) 2011 - 2015 by Dave Rolsky. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This is free software, licensed under: |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
The Artistic License 2.0 (GPL Compatible) |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=cut |