File: Boolean.pm

package info (click to toggle)
libdata-amf-perl 0.09%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 552 kB
  • ctags: 527
  • sloc: perl: 5,955; makefile: 10
file content (46 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package Data::AMF::Type::Boolean;
use strict;
use warnings;

sub new
{
	my $class = shift;
	my $self = bless { data => $_[0] }, $class;
	return $self;
}

sub data
{
	my $self = shift;
	
	if(@_)
	{
		$self->{'data'} = $_[0];
	}
	
	return $self->{'data'};
}

1;

__END__

=head1 NAME
 
Data::AMF::Type::Boolean

=head1 SYNOPSIS

=head1 AUTHOR

Takuho Yoshizu <seagirl@cpan.org>

=head1 COPYRIGHT

This program is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the
LICENSE file included with this module.

=cut