initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module FO::HTTP
|
||||
class Session
|
||||
def initialize(env)
|
||||
@env = env
|
||||
end
|
||||
|
||||
def hash
|
||||
@env['rack.session']
|
||||
end
|
||||
|
||||
def set!(k,v)
|
||||
hash[k] = v
|
||||
end
|
||||
|
||||
def get(k)
|
||||
hash[k]
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user