class ApiExplorer::Node
Attributes
children[RW]
parent[RW]
path[RW]
Public Class Methods
new(parent = nil, children = nil, path = nil)
click to toggle source
# File lib/api_explorer/node.rb, line 5 def initialize(parent = nil, children = nil, path = nil) self.parent = parent || NullNode.new self.children = children || [] self.path = path.to_s self.children.each { |c| c.parent = self } end
Public Instance Methods
full_path()
click to toggle source
# File lib/api_explorer/node.rb, line 13 def full_path parent.full_path + path end