class Doxyparser::Compound
Representation of a ‘high level’ {Node} which is represented in its own XML file such as namespaces, classes, etc
Attributes
xml_path[R]
Private Instance Methods
doc()
click to toggle source
# File lib/nodes/compound.rb, line 24 def doc if @doc.nil? parse end @doc end
find_name()
click to toggle source
# File lib/nodes/compound.rb, line 20 def find_name @node.child.content end
init_attributes()
click to toggle source
Calls superclass method
# File lib/nodes/compound.rb, line 10 def init_attributes super @unnamed = 0 if @node && !@node['refid'].nil? @xml_path = "#{@dir}/#{self.refid}.xml" else compute_path end end
parse()
click to toggle source
# File lib/nodes/compound.rb, line 31 def parse raise "No file found at this location: #{@xml_path} for node #{self.class.name} #{@name}" unless File.exists? @xml_path File.open(@xml_path) { |xml_doc| @doc=Nokogiri::XML(xml_doc) } self end