Skip to content

Commit

Permalink
class setup is no method anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
wchristian committed Dec 18, 2011
1 parent 16e2653 commit 5a3fb64
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/XML/Dumb.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ use Carp 'croak';
use XML::Twig;
use Moo;

setup_class();

sub setup_class {
sub {
has $_ => ( is => 'ro', lazy => 1, builder => "_build_$_" ) for qw( twig );
has $_ => ( is => 'ro' ) for qw(
root_wrapper children_as_keys_by_tag children_as_keys_by_att
Expand All @@ -17,9 +15,8 @@ sub setup_class {
has children_key => is => 'ro', default => sub { 'children' };
has tag_key => is => 'ro', default => sub { 'tag' };
has atts_key => is => 'ro', default => sub { 'atts' };

return;
}
}
->();

sub _build_twig { XML::Twig->new }

Expand Down

0 comments on commit 5a3fb64

Please sign in to comment.