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]

ruby-doc.org is hosted and maintained by James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, Arizona. The site was created in 2002 as part of the Ruby Documentation Project to promote the Ruby language and to help other Ruby hackers.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.