spec/lib/jspec.js
function(object) {
      var module = object.constructor == JSpec.Module ? object : new JSpec.Module(object)
      this.modules.push(module)
      if ('init' in module) module.init()
      if ('utilities' in module) extend(this.defaultContext, module.utilities)
      if ('matchers' in module) this.addMatchers(module.matchers)
      if ('reporters' in module) extend(this.reporters, module.reporters)
      if ('DSLs' in module)
        each(module.DSLs, function(name, methods){
          JSpec.DSLs[name] = JSpec.DSLs[name] || {}
          extend(JSpec.DSLs[name], methods)
        })
      return this
    }
function(object) {
      var module = object.constructor == JSpec.Module ? object : new JSpec.Module(object)
      this.modules.push(module)
      if ('init' in module) module.init()
      if ('utilities' in module) extend(this.defaultContext, module.utilities)
      if ('matchers' in module) this.addMatchers(module.matchers)
      if ('reporters' in module) extend(this.reporters, module.reporters)
      if ('DSLs' in module)
        each(module.DSLs, function(name, methods){
          JSpec.DSLs[name] = JSpec.DSLs[name] || {}
          extend(JSpec.DSLs[name], methods)
        })
      return this
    }
function ( object ) { var module = object . constructor == JSpec . Module ? object : new JSpec . Module ( object ) this . modules . push ( module ) if ( 'init' in module ) module . init ( ) if ( 'utilities' in module ) extend ( this . defaultContext , module . utilities ) if ( 'matchers' in module ) this . addMatchers ( module . matchers ) if ( 'reporters' in module ) extend ( this . reporters , module . reporters ) if ( 'DSLs' in module ) each ( module . DSLs , function ( name , methods ) { JSpec . DSLs [ name ] = JSpec . DSLs [ name ] || { } extend ( JSpec . DSLs [ name ] , methods ) } ) return this }
Include _object_ which may be a hash or Module instance.

@param  {hash, Module} object
@return {JSpec}
@api public
Include _object_ which may be a hash or Module instance .