line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Fey::Role::IsLiteral; |
2
|
|
|
|
|
|
|
|
3
|
28
|
|
|
28
|
|
15291
|
use strict; |
|
28
|
|
|
|
|
53
|
|
|
28
|
|
|
|
|
1120
|
|
4
|
28
|
|
|
28
|
|
143
|
use warnings; |
|
28
|
|
|
|
|
49
|
|
|
28
|
|
|
|
|
774
|
|
5
|
28
|
|
|
28
|
|
141
|
use namespace::autoclean; |
|
28
|
|
|
|
|
40
|
|
|
28
|
|
|
|
|
176
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.43'; |
8
|
|
|
|
|
|
|
|
9
|
28
|
|
|
28
|
|
2282
|
use Moose::Role; |
|
28
|
|
|
|
|
76
|
|
|
28
|
|
|
|
|
192
|
|
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.43 |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 SYNOPSIS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
use Moose 2.1200; |
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 |