class Node
helper class for tree-building.
Attributes
children[RW]
doc[RW]
id[RW]
namespace[RW]
title[RW]
Public Class Methods
new(id, namespace, title, doc)
click to toggle source
# File lib/jekyll-namespaces/node.rb, line 7 def initialize(id, namespace, title, doc) @id = id @children = [] @namespace = namespace @title = title @doc = doc end
Public Instance Methods
to_s()
click to toggle source
# File lib/jekyll-namespaces/node.rb, line 19 def to_s "namespace: #{@namespace}" end
type()
click to toggle source
# File lib/jekyll-namespaces/node.rb, line 15 def type return doc.type end