File: XY.pm

package info (click to toggle)
libspecio-perl 0.52-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,132 kB
  • sloc: perl: 5,200; sh: 23; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package Specio::Library::XY;

use strict;
use warnings;

use parent 'Specio::Exporter';

use Specio::Declare;
use Specio::Library::Builtins;

declare(
    'X',
    parent => t('Str'),
    where  => sub { $_[0] =~ /x/ },
);

declare(
    'Y',
    parent => t('X'),
    where  => sub { $_[0] =~ /y/ },
);

1;