Skip to content
This repository has been archived by the owner on Aug 8, 2021. It is now read-only.
/ Object-Botox Public archive

Object::Botox - simple constructor and properties prototyper whith checking of properties existans

Notifications You must be signed in to change notification settings

Meettya/Object-Botox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Object-Botox

Object::Botox writed for easy object creation by default constructor and support managment properties,
inherited by children of prototyping class.

To create parent module:
   
	package Parent;

	use Botox;
        
  # strictly named constant PROTOTYPE !
	use constant PROTOTYPE => {
                'prop1_ro' => 1 ,
                'prop2' => 'abcde'
                };
	
	1; 

after that we are create instanse:

	package main;
	use Data::Dumper;
	
	# change default value for prop1
	my $foo = new Parent( { prop1 => 888888 } );
	
	print Dumper($foo);

outputs get to us:

	$VAR1 = bless( {
			'Parent::prop1' => 888888,
			'Parent::prop2' => 'abcde'
			 }, 'Parent' );

ok, in short it is like Mouse, but simple.

INSTALLATION

To install this module, run the following commands:

	perl Build.PL
	./Build
	./Build test
	./Build install

SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the
perldoc command.

    perldoc Object::Botox

You can also look for information at:

    RT, CPAN's request tracker (report bugs here)
        http://rt.cpan.org/NoAuth/Bugs.html?Dist=Object-Botox

    AnnoCPAN, Annotated CPAN documentation
        http://annocpan.org/dist/Object-Botox

    CPAN Ratings
        http://cpanratings.perl.org/d/Object-Botox

    Search CPAN
        http://search.cpan.org/dist/Object-Botox/


LICENSE AND COPYRIGHT

Copyright (C) 2011 Meettya

This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

About

Object::Botox - simple constructor and properties prototyper whith checking of properties existans

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages