Object::Simple - Simple class builder, Mojo::Base porting
Object::Simple is simple class builder, Mojo::Base porting. Mojo::Base is simple and useful, but This is a part of Mojolicious. I port it as single module.
package Point; use Object::Simple -base; has x => 1; has y => 1; package main; my $point = Point->new; print $point->x; 1;
Generally speaking, You can write any program using single inheritance and delegation. If you want simple class builder, Object::Simple is good choice.