Sha256: 8e97c08f3c7e0a383fd66d39d522ea9aca6d8efa238d29c98d9a11dd9249ab50
Contents?: true
Size: 241 Bytes
Versions: 6
Compression:
Stored size: 241 Bytes
Contents
module Rail class Request attr_reader :env def initialize(env) @env = env end def path @path ||= env['PATH_INFO'].sub(/^\//, '').sub(/\?.*$/, '') end def host env['HTTP_HOST'] end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
rail-0.0.7 | lib/rail/request.rb |
rail-0.0.6 | lib/rail/request.rb |
rail-0.0.5 | lib/rail/request.rb |
rail-0.0.4 | lib/rail/request.rb |
rail-0.0.3 | lib/rail/request.rb |
rail-0.0.2 | lib/rail/request.rb |