index.js
function(contextObj, options) {
        options = options ? mergeDeep(this.options, options, true) : this.options;
        var context = this._parseContext(contextObj);
        var subKey = options.applySubstitutions !== false ? 'subbed': 'unsubbed';
        var collector = this.masterDelta ? cloneDeep(this.masterDelta[subKey]) : {};
        this._readHelper(this.tree, 0, context, collector, subKey);
        if(collector.__ycb_source__) {
            return omit(collector, '__ycb_source__');
        }
        return collector;
    }
function(contextObj, options) {
        options = options ? mergeDeep(this.options, options, true) : this.options;
        var context = this._parseContext(contextObj);
        var subKey = options.applySubstitutions !== false ? 'subbed': 'unsubbed';
        var collector = this.masterDelta ? cloneDeep(this.masterDelta[subKey]) : {};
        this._readHelper(this.tree, 0, context, collector, subKey);
        if(collector.__ycb_source__) {
            return omit(collector, '__ycb_source__');
        }
        return collector;
    }
function ( contextObj , options ) { options = options ? mergeDeep ( this . options , options , true ) : this . options ; var context = this . _parseContext ( contextObj ) ; var subKey = options . applySubstitutions !== false ? 'subbed' : 'unsubbed' ; var collector = this . masterDelta ? cloneDeep ( this . masterDelta [ subKey ] ) : { } ; this . _readHelper ( this . tree , 0 , context , collector , subKey ) ; if ( collector . __ycb_source__ ) { return omit ( collector , '__ycb_source__' ) ; } return collector ; }
Read the file.
@method read
@param contextObj {object}
@param options {object}
@return {object}
Read the file .