class ActionDispatch::Request::Session

def [](key)

Experimental RBS support (using type sampling data from the type_fusion project).

def []: (String key) -> String

This signature was generated using 1 sample from 1 application.

+nil+ if the given key is not found in the session.
Returns value of the key stored in the session or
def [](key)
  load_for_read!
  key = key.to_s
  if key == "session_id"
    id&.public_id
  else
    @delegate[key]
  end
end