class Rack::StaticmeBuilder
Private Instance Methods
generate_map(default_app, mapping)
click to toggle source
# File lib/rack/staticme_builder.rb, line 10 def generate_map(default_app, mapping) mapped = default_app ? {'/' => default_app} : {} mapping.each { |r,b| mapped[r] = self.class.new(default_app, &b) } StaticmeURLMap.new(mapped) end