blib/lib/Gapp/TextBuffer.pm untested

filter: Statementstmt 0.0% 0 / 24 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 45 CC 4 SCAR 25.1
CC
4
Cov
0%
BUILDARGS
20.0
BEGIN
2.0
BEGIN
2.0
CRAP 12.3
1 package Gapp::TextBuffer;
2 {
3 $Gapp::TextBuffer::VERSION = '0.60';
4 }
5  
6 use Moose;
7 use MooseX::SemiAffordanceAccessor;
8  
9 extends 'Gapp::Object';
10  
11 use Gapp::TextTagTable;
12  
13 has '+gclass' => (
14 default => 'Gtk2::TextBuffer',
15 );
16  
17 has 'tag_table' => (
18 is => 'rw',
19 isa => 'Maybe[Gapp::TextTagTable]',
20 );
21  
22  
23 sub BUILDARGS {
24 my $class = shift;
25 my %args = @_ == 1 && is_HashRef( $_[0] ) ? %{$_[0]} : @_;
26
27 for ( qw[has_selection text] ) {
28 $args{properties}{$_} = delete $args{$_} if exists $args{$_};
29 }
30
31 if ( exists $args{tag_table} && defined $args{tag_table} ) {
32 $args{args} = [ $args{tag_table}->gobject ];
33 }
34
35 __PACKAGE__->SUPER::BUILDARGS( %args );
36 }
37  
38  
39  
40  
41 1;
42  
43  
44 __END__