Class: RDoc::Generator::SHtml::FilesTree
- Inherits:
- 
      Object
      
        - Object
- RDoc::Generator::SHtml::FilesTree
 
- Defined in:
- lib/wpdoc/generator/shtml.rb
Instance Attribute Summary collapse
- 
  
    
      #children  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute children. 
Instance Method Summary collapse
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
| 324 325 326 | # File 'lib/wpdoc/generator/shtml.rb', line 324 def children @children end | 
Instance Method Details
#add(path, url) ⇒ Object
| 325 326 327 328 329 330 331 332 333 334 | # File 'lib/wpdoc/generator/shtml.rb', line 325 def add(path, url) path = path.split(File::SEPARATOR) unless Array === path @children ||= {} if path.length == 1 @children[path.first] = url else @children[path.first] ||= FilesTree.new @children[path.first].add(path[1, path.length], url) end end |