This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Role('JooseX.Attribute.Delegated', { | |
have : { | |
handles : null | |
}, | |
override : { | |
getAccessorsFor : function (targetClass) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sudden fail: | |
var a = instance.method() | |
(function() { | |
})() | |
eq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Role('Some.Trait', { | |
builder : { | |
methods : { | |
newBuilder : function (meta, info) { | |
meta.addProperty(...) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Script = process.binding('evals').Script | |
var sys = require('sys') | |
var puts = sys.puts | |
var runner = function (code) { return eval(code) } | |
var sandbox = {} | |
sandbox.me = sandbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class('Some.Another.Module', { | |
use : ['Some.Joose.Module'] | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require.paths.unshift('/home/nickolay/Playground/nodejs'); | |
require('Task/Joose/NodeJS'); | |
var sys = require('sys'); | |
Joose.Module('SuperStuff', { | |
require : [ 'faye'], | |
use : [ 'Task/JooseX/Class/SimpleConstructor/Core', 'Task/JooseX/Role/Parameterized/Core', 'JooseX/Class/Singleton' ], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require.paths.unshift('/us/local/lib/jsan'); | |
require.paths.unshift('/home/nickolay/Playground/nodejs'); | |
require('Task/Joose/NodeJS'); | |
var sys = require('sys'); | |
Joose.Module('SuperStuff', { | |
// the following library is available in the path unshifted above |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require.paths.unshift('/us/local/lib/jsan'); | |
require.paths.unshift('/home/nickolay/Playground/nodejs'); | |
require('Task/Joose/NodeJS'); | |
var sys = require('sys'); | |
Joose.Module('SuperStuff', { | |
// the following library is available in the path unshifted above |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class('Class.With.Decorated.Methods', { | |
trait : JooseX.Class.MethodLabels, | |
methods : { | |
method1 : function () { | |
... | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Role('Method.Feature.Decorated') | |
Class('Method.Special', { | |
meta : JooseX.Meta.Class, | |
isa : Joose.Managed.Property.MethodModifier.Put, | |
does : Method.Feature.Decorated | |
}) |