 
   return
 
-class CollectionBehaviours
+CollectionBehaviours =
 
-  @attach: (collections, args...) ->
+  attach: (collections, args...) ->
     check collections, Match.OneOf Mongo.Collection, [Mongo.Collection]
 
     if Match.test collections, Mongo.Collection


    attach.apply collection, args for collection in collections

  @config: ->
    @configure.apply @, arguments

  @configure: (name, options) ->
    check name, String
    check options, Object


    else
      console.warn 'Configure failed, behaviour not found'

  define: (name, behaviour, options) ->
    check name, String
    check behaviour, Function

