bluefire
Version:
Lightweight tcp framework
18 lines (13 loc) • 367 B
text/coffeescript
module.exports = class BluefireObject
constructor: () ->
: (obj) ->
for key, value of obj when key not in moduleKeywords
@[key] = value
obj.extended?.apply(@)
return this
: (obj) ->
for key, value of obj when key not in moduleKeywords
# Assign properties to the prototype
@::[key] = value
obj.included?.apply(@)
return this