-class Trix.Hash
+#= require trix/utilities/object
+
+class Trix.Hash extends Trix.Object
   @fromCommonAttributesOfObjects: (objects = []) ->
     return new this unless objects.length
     hash = box(objects[0])

  toJSON: ->
    @toObject()

  inspect: ->
    JSON.stringify(@values)

  object = (key, value) ->
    result = {}

    box(values)

  constructor: (@values = {}) ->
    super

  add: (key, value) ->
    @merge(object(key, value))
