Skip to content

Commit

Permalink
Merge pull request #127 from paultcochrane/pr/use-two-arg-bless
Browse files Browse the repository at this point in the history
Use two argument form of bless
  • Loading branch information
racke committed Aug 11, 2015
2 parents 99a8606 + 8d3e4b4 commit f88463a
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/Template/Flute/Container.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sub new {

$self = {sob => $sob};

bless $self;
bless $self, $class;

return $self;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Template/Flute/Form.pm
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ sub new {
$self->{method} = 'GET';
}

bless $self;
bless $self, $class;
}

=head1 METHODS
Expand Down
2 changes: 1 addition & 1 deletion lib/Template/Flute/HTML.pm
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ sub new {
$self = {%args, containers => {}, lists => {}, pagings => {}, forms => {},
params => {}, values => {}, query => {}, file => undef};

bless $self;
bless $self, $class;
}

=head1 METHODS
Expand Down
2 changes: 1 addition & 1 deletion lib/Template/Flute/Increment.pm
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ sub new {
$self->{increment} = 1;
}

bless $self;
bless $self, $class;

return $self;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Template/Flute/List.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sub new {
}
$self->{limit} = $sob->{limit} if defined $sob->{limit};

bless $self;
bless $self, $class;

if ($spec && $name) {
$self->inputs_add($spec->list_inputs($name));
Expand Down
2 changes: 1 addition & 1 deletion lib/Template/Flute/Specification.pm
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ sub new {
# named patterns
$self->{patterns} = {};

bless $self;
bless $self, $class;
}

sub _ids {
Expand Down
2 changes: 1 addition & 1 deletion lib/Template/Flute/Specification/XML.pm
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ sub new {
%params = @_;

$self = \%params;
bless $self;
bless $self, $class;
}

=head1 METHODS
Expand Down

0 comments on commit f88463a

Please sign in to comment.