Method: Dphil::TreeNode#initialize

Defined in:
lib/dphil/tree_node.rb

#initialize(opts = {}) ⇒ TreeNode

Returns a new instance of TreeNode.



11
12
13
14
15
16
17
# File 'lib/dphil/tree_node.rb', line 11

def initialize(opts = {})
  self.id = opts[:id]
  self.name = opts[:name]
  self.length = opts[:length]
  self.parent = opts[:parent]
  self.children = opts[:children]
end