NAME

Blosxom::Header::Prototype - wraps existent subroutines in an object

SYNOPSIS

use Blosxom::Header::Prototype;

my $object = Blosxom::Header::Prototype->new(
    foo => sub { 'bar' },
    bar => sub { 'baz' },
);

$object->foo(); # 'bar'
$object->bar(); # 'baz'

DESCRIPTION

Wraps existent subroutines in an object.

EXPORT

None.

METHODS

$object = Blosxom::Header::Prototype->new( %method )

Create a new Blosxom::Header::Prototype object.

my $object = Blosxom::Header::Prototype->new(
    method1 => $code_ref1,
    method2 => $code_ref2,
);
$object->can( 'foo' )
Returns a Boolean value telling whether the specified method exists.

SEE ALSO

Object::Prototype, Plack::Util::Prototype

AUTHOR

Ryo Anazawa (anazawa@cpan.org)

LICENSE AND COPYRIGHT

Copyright (c) 2011 Ryo Anazawa. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.