class ActionDispatch::Request::Session::Options
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/action_dispatch/request/session.rbs class ActionDispatch::Request::Session::Options def self.find: (ActionDispatch::Request req) -> ActionDispatch::Request::Session::Options def []=: (Symbol k, Rack::Session::SessionId v) -> Rack::Session::SessionId def id: (ActionDispatch::Request req) -> Rack::Session::SessionId def initialize: (ActionDispatch::Session::CookieStore by, Hash default_options) -> void end
:nodoc:
def self.find(req)
Experimental RBS support (using type sampling data from the type_fusion
project).
def self.find: (ActionDispatch::Request req) -> ActionDispatch::Request::Session::Options
This signature was generated using 1 sample from 1 application.
def self.find(req) req.get_header ENV_SESSION_OPTIONS_KEY end
def self.set(req, options)
def self.set(req, options) req.set_header ENV_SESSION_OPTIONS_KEY, options end
def [](key)
def [](key) @delegate[key] end
def []=(k, v); @delegate[k] = v; end
Experimental RBS support (using type sampling data from the type_fusion
project).
def []=: (Symbol k, Rack::Session::SessionId v) -> Rack::Session::SessionId
This signature was generated using 1 sample from 1 application.
def []=(k, v); @delegate[k] = v; end
def id(req)
Experimental RBS support (using type sampling data from the type_fusion
project).
def id: (ActionDispatch::Request req) -> Rack::Session::SessionId
This signature was generated using 1 sample from 1 application.
def id(req) @delegate.fetch(:id) { @by.send(:extract_session_id, req) } end
def initialize(by, default_options)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (ActionDispatch::Session::CookieStore by, path | String | domain | NilClass | expire_after | NilClass | secure | FalseClass | httponly | TrueClass | defer | FalseClass | renew | FalseClass default_options) -> void
This signature was generated using 1 sample from 1 application.
def initialize(by, default_options) @by = by @delegate = default_options.dup end
def to_hash; @delegate.dup; end
def to_hash; @delegate.dup; end
def values_at(*args); @delegate.values_at(*args); end
def values_at(*args); @delegate.values_at(*args); end