| Data-Rx documentation | Contained in the Data-Rx distribution. |
Data::Rx::CoreType - base class for core Rx types
version 0.100110
Ricardo SIGNES <rjbs@cpan.org>
This software is copyright (c) 2010 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Data-Rx documentation | Contained in the Data-Rx distribution. |
use strict; use warnings; package Data::Rx::CoreType; our $VERSION = '0.100110'; # ABSTRACT: base class for core Rx types sub new_checker { my ($class, $arg, $rx) = @_; Carp::croak "$class does not take check arguments" if %$arg; bless { rx => $rx } => $class; } sub type_uri { sprintf 'tag:codesimply.com,2008:rx/core/%s', $_[0]->subname } 1; __END__