WEBrick::HTTPServer::MountTable (Class)

In: webrick/httpserver.rb
Parent: Object

Methods

[]   []=   delete   new   scan  

Public Class methods

[Source]

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

Public Instance methods

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Validate]