Skip to content

Commit

Permalink
- removed Task.Joose.Stable from provided libs (its now in separate d…
Browse files Browse the repository at this point in the history
…istribution)

- version bumped to 3.005
- added some text about traits as meta-roles
  • Loading branch information
canonic-epicure committed Feb 12, 2010
1 parent 97abc56 commit cbfa206
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3,086 deletions.
2 changes: 1 addition & 1 deletion Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use inc::Module::JSAN::DSL;


name Joose
version 3.004
version 3.005

author 'Nickolay Platonov (aka SamuraiJack) <nplatonov@cpan.org>'
author 'Malte Ubl'
Expand Down
3 changes: 1 addition & 2 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,8 @@ lib/Joose/Proto/Class.js
lib/Joose/Proto/Empty.js
lib/Joose/Proto/Object.js
lib/Task/Joose/Core.js
lib/Task/Joose/Stable.js
LICENCE
MANIFEST This list of files
MANIFEST
META.json
README.md
t/010_proto_class.t.js
Expand Down
6 changes: 1 addition & 5 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"version" : "1.4",
"url" : "http://module-build.sourceforge.net/META-spec-v1.4.html"
},
"version" : "3.004",
"version" : "3.005",
"name" : "Joose",
"author" : [
"Nickolay Platonov (aka SamuraiJack) <nplatonov@cpan.org>",
Expand Down Expand Up @@ -61,10 +61,6 @@
"version" : null,
"file" : "lib/Joose/Managed/Property/Attribute.js"
},
"Task.Joose.Stable" : {
"version" : "3.001",
"file" : "lib/Task/Joose/Stable.js"
},
"Joose.Manual.Contributing" : {
"version" : null,
"file" : "lib/Joose/Manual/Contributing.js"
Expand Down
23 changes: 23 additions & 0 deletions lib/Joose/Manual/Traits.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,29 @@ You may decide to remove the trait (rememeber, all Joose classes are mutable at
parser.meta.extend({
doesnot : Logger
})
TRAITS AS META-ROLES
====================
Sometime traits are also mentioned in *meta-role* context. This means, that this trait is being applied to the instance of meta-class.
Such traits modifies the *behaviour of class itself* (its meta), not its methods or attributes.
An example of such trait can be a [JooseX.Class.Singleton](http://openjsan.org/go?l=JooseX.Class.Singleton):
Class('Some.Class', {
trait : JooseX.Class.Singleton,
has : {
...
},
methods : {
...
}
})
AUTHOR
======
Expand Down
Loading

0 comments on commit cbfa206

Please sign in to comment.