Method: Lookbook::TreeNode#initialize

Defined in:
lib/lookbook/support/tree_node.rb

#initialize(path = nil, content = nil, priority: 10000) ⇒ TreeNode

Returns a new instance of TreeNode.



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

def initialize(path = nil, content = nil, priority: 10000)
  @path = path.to_s
  @content = content
  @priority = priority
  @children = []
end