File: Types.pm

package info (click to toggle)
libnet-twitter-perl 4.01043-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 840 kB
  • sloc: perl: 6,703; makefile: 13
file content (24 lines) | stat: -rw-r--r-- 380 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package Net::Twitter::Types;
$Net::Twitter::Types::VERSION = '4.01043';
use Moose::Util::TypeConstraints;
use URI;

class_type 'Net::Twitter::Types::URI', { class => 'URI' };

coerce 'Net::Twitter::Types::URI' => from 'Str' => via { URI->new($_) };

1;

__END__

=pod

=head1 NAME

Net::Twitter::Types - types and coercions for Net::Twitter

=head1 VERSION

version 4.01043

=cut