NAME
Eixo::Base - Another Perl extension for Classes and Objects
SYNOPSIS
package A;
use parent qw(Eixo::Base::Clase);
# attribute setters and getters are created automatically
has(
id => undef,
size => undef,
);
# to initialize something in object instantiation
sub initialize {
my ($self,%args) = @_;
if($args{size} > 10) {
$self->size = 10;
}
# initialize flog function
$self->flog(sub{
print $_[0]
});
return $self;
}
# Log input in this method
sub my_method :Log {
...
}
# check signature when calling the method
sub my_method :Sig(i,B){
...
}
DESCRIPTION
SEE ALSO
AUTHOR
Francisco Maseda, <frmadem@gmail.com>
Javier Gomez, <alambike@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2014 by Francisco Maseda
Copyright (C) 2014 by Javier Gomez
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.