lib/compo/hash_branch.rb in compo-0.2.0 vs lib/compo/hash_branch.rb in compo-0.3.0

- old
+ new

@@ -1,5 +1,7 @@ +require 'compo/branch' + module Compo # A simple implementation of a branch, whose children are stored in an Hash # # An HashBranch is a composite object that may be moved into other composite # objects. It stores its children as an Hash, and the ID of each child is @@ -8,22 +10,8 @@ # remove the previous occupant. # # This is an extension of HashComposite to include the Movable and # ParentTracker mixins. class HashBranch < HashComposite - include Movable - include ParentTracker - include UrlReferenceable - - # Initialises the HashBranch - # - # The HashBranch is created with no children, no parent, and no ID. - # - # @api public - # @example Creates a new HashBranch. - # branch = HashBranch.new - def initialize - super() - remove_parent - end + include Branch end end