Name ==== JooseX.Class.SimpleConstructor - a trait for class, making the 'new' keyword optional during instantiation SYNOPSIS ======== Class('Some.Class', { trait : JooseX.Class.SimpleConstructor, has : { ... }, methods : { ... } }) // no need in `new` var instance = Some.Class() var check = instance instanceOf Some.Class // true DESCRIPTION =========== `JooseX.Class.SimpleConstructor` is a very simple trait, which makes the `new` keyword optional for instantiation. The class constructor will just return a new instance every time. This trait should be applied last among all your traits, modifying the constructor behavior. GETTING HELP ============ This extension is supported via github issues tracker: For general Joose questions you can also visit [#joose](http://webchat.freenode.net/?randomnick=1&channels=joose&prompt=1) on irc.freenode.org or the forum at: SEE ALSO ======== Web page of this module: General documentation for Joose: BUGS ==== All complex software has bugs lurking in it, and this module is no exception. Please report any bugs through the web interface at AUTHORS ======= Nickolay Platonov COPYRIGHT AND LICENSE ===================== This software is Copyright (c) 2010 by Nickolay Platonov . This is free software, licensed under: The GNU Lesser General Public License, Version 3, June 2007