Sha256: b4258fb22594ba75757cc74d5cba895504fcfa577140aa4c8c8215c38903a463
Contents?: true
Size: 449 Bytes
Versions: 1
Compression:
Stored size: 449 Bytes
Contents
module Spire class Map attr_accessor :auto def initialize @maps = Hash.new({}) @auto = false end def route(opts={}) @maps[opts[:url]] = opts[:to] end def get(url) return @maps[url] end def should_use_auto(url) if @maps[url] == {} && @auto return true end end def exists?(url) unless @maps[url] == {} return true end end def disect(request) return request.split("/") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spire-0.4.11 | lib/spire/map.rb |