lib/level.js
function(path, opts) {
        opts = opts || {};
        this.dir = PATH.resolve(path.path || path);
        this.projectRoot = opts.projectRoot || PATH.resolve('');

        // NOTE: keep this.path for backwards compatibility
        this.path = this.bemDir = PATH.join(this.dir, '.bem');

        path = PATH.relative(this.projectRoot, this.dir);
        this.cache = useCache;
        for(var e in exceptLevels) {
            var except = exceptLevels[e];
            if (path.substr(0, except.length) === except) {
                this.cache = !this.cache;
                break;
            }
        }

        // NOTE: tech modules cache
        this._techsCache = {};
    }
function(path, opts) {
        opts = opts || {};
        this.dir = PATH.resolve(path.path || path);
        this.projectRoot = opts.projectRoot || PATH.resolve('');

        // NOTE: keep this.path for backwards compatibility
        this.path = this.bemDir = PATH.join(this.dir, '.bem');

        path = PATH.relative(this.projectRoot, this.dir);
        this.cache = useCache;
        for(var e in exceptLevels) {
            var except = exceptLevels[e];
            if (path.substr(0, except.length) === except) {
                this.cache = !this.cache;
                break;
            }
        }

        // NOTE: tech modules cache
        this._techsCache = {};
    }
function ( path , opts ) { opts = opts || { } ; this . dir = PATH . resolve ( path . path || path ) ; this . projectRoot = opts . projectRoot || PATH . resolve ( '' ) ; // NOTE: keep this.path for backwards compatibility this . path = this . bemDir = PATH . join ( this . dir , '.bem' ) ; path = PATH . relative ( this . projectRoot , this . dir ) ; this . cache = useCache ; for ( var e in exceptLevels ) { var except = exceptLevels [ e ] ; if ( path . substr ( 0 , except . length ) === except ) { this . cache = ! this . cache ; break ; } } // NOTE: tech modules cache this . _techsCache = { } ; }
Construct an instance of Level.

@class Level base class.
@constructs
@param {String | Object} path  Level directory path.
@param {Object} [opts] Optional parameters
Construct an instance of Level .