 isString        = require 'util-ex/lib/is/type/string'
 defineProperty  = require 'util-ex/lib/defineProperty'
 inheritsObject  = require 'inherits-ex/lib/inheritsObject'
-createObject    = require("inherits-ex/lib/createObject")
+createObject    = require 'inherits-ex/lib/createObject'
 ObjectValue     = require './value/object'
 attributes      = createObject require './attributes/object'
 module.exports  = Type = require './attribute'

      else
        defineProperty aObjectValue, '$type', @
    aObjectValue

      type: ...
  ###
  defineAttribute: (aName, aOptions)->
    unless aName and aName.length
      throw TypeError('defineAttribute has no attribute name')
    if @attributes[aName]?
      throw TypeError('the attribute "' + aName + '" has already defined.')
    if isString aOptions
      vType = Type(aOptions)
      throw TypeError("no such type registered:"+aOptions) unless vType
