22 lines
254 B
Ruby
22 lines
254 B
Ruby
# 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
|