Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Artie Kh
committed
Jan 23, 2013
1 parent
ca0e57a
commit 6d80bf5
Showing
17 changed files
with
154 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
package Kompot::Base; | ||
|
||
use v5.12; | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use utf8; | ||
use v5.12; | ||
|
||
use Carp; | ||
|
||
#sub import { | ||
# my $class = shift; | ||
#} | ||
|
||
sub new { | ||
my $class = shift; | ||
|
||
my $self = bless({}, ref($class) || $class); | ||
|
||
my $self = bless {}, ref $class || $class; | ||
$self->init(@_); | ||
|
||
return $self; | ||
} | ||
|
||
# default initializer | ||
sub init {1} | ||
|
||
sub app { state $_app ||= Kompot::App->new } | ||
|
||
|
||
1; | ||
|
||
__END__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.