Class WEBrick::HTTPServer::MountTable
In: webrick/httpserver.rb
Parent: Object

Methods

[]   []=   delete   new   scan  

Public Class methods

[Source]

# File webrick/httpserver.rb, line 164
      def initialize
        @tab = Hash.new
        compile
      end

Public Instance methods

[Source]

# File webrick/httpserver.rb, line 169
      def [](dir)
        dir = normalize(dir)
        @tab[dir]
      end

[Source]

# File webrick/httpserver.rb, line 174
      def []=(dir, val)
        dir = normalize(dir)
        @tab[dir] = val
        compile
        val
      end

[Source]

# File webrick/httpserver.rb, line 181
      def delete(dir)
        dir = normalize(dir)
        res = @tab.delete(dir)
        compile
        res
      end

[Source]

# File webrick/httpserver.rb, line 188
      def scan(path)
        @scanner =~ path
        [ $&, $' ]
      end

[Validate]