File: Event_RPC_Test2.pm

package info (click to toggle)
libevent-rpc-perl 1.08-2%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 520 kB
  • sloc: perl: 2,353; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 320 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
package Event_RPC_Test2;

use strict;
use utf8;

sub get_data			{ shift->{data}				}
sub set_data			{ shift->{data}			= $_[1]	}

sub new {
    my $class = shift;
    my ($data) = @_;
    
    return bless {
        data    => $data,
    }, $class;
}

sub get_object_copy {
    my $self = shift;
    return $self;
}

1;