repo.or.cz
/
Pqsl-Perl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
changed get_ to build_ the new Moose convention
[Pqsl-Perl.git]
/
PSQL-Query
/
lib
/
PSQL
/
Query
/
Token
/
Range.pm
blob
dcf70bb11cd8b76056900e463f8ccb79ad6847e0
1
package
PSQL
::
Query
::
Token
::
Range
;
2
use
Moose
;
3
4
extends
'PSQL::Query::Token'
;
5
6
has
'max'
=> (
7
isa
=>
'Str'
8
,
is
=>
'rw'
9
,
lazy
=>
1
10
,
default
=>
\
&
build_max
11
);
12
13
has
'min'
=> (
14
isa
=>
'Str'
15
,
is
=>
'rw'
16
,
lazy
=>
1
17
,
default
=>
\
&
build_min
18
);
19
20
sub
build_max
{
21
my
$self
=
shift
;
22
23
$self
->
src
=~
/\.+(\d+?.\d+?)$/
;
24
25
$1
;
26
27
}
28
29
sub
build_min
{
30
my
$self
=
shift
;
31
32
$self
->
src
=~
/(\d+?\.\d+?)\.{2}/
;
33
34
$1
;
35
36
}
37
38
1
;