WebRI  WebRI::Search::FilesTree

Parent

Methods

[Validate]
Generated with WebRI Redfish 1.2

FilesTree

Attributes

children[R]

(Not documented)

Public Instance Methods

add(path, url) click to toggle source

(Not documented)

# File lib/webri/components/search.rb, line 193
      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

Disabled; run with --debug to generate this.