class Rack::Session::SessionId

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

# sig/rack/session/abstract/id.rbs

class Rack::Session::SessionId
  def empty?: () -> false
  def initialize: (String public_id) -> void
end

def empty?; false; end

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

def empty?: () -> false

This signature was generated using 1 sample from 1 application.

def empty?; false; end

def hash_sid(sid)

def hash_sid(sid)
  Digest::SHA256.hexdigest(sid)
end

def initialize(public_id)

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

def initialize: (String public_id) -> void

This signature was generated using 2 samples from 1 application.

def initialize(public_id)
  @public_id = public_id
end

def inspect; public_id.inspect; end

def inspect; public_id.inspect; end

def private_id

def private_id
  "#{ID_VERSION}::#{hash_sid(public_id)}"
end