Sha256: f0cedde45f60da55ee05b2f86794e68630e5b8564ce089211fff6a8aed58c896
Contents?: true
Size: 302 Bytes
Versions: 4
Compression:
Stored size: 302 Bytes
Contents
# frozen_string_literal: true require "thread" class Thread # Returns the name of the current thread # Default: # String representation of this thread's object_id def name @name ||= object_id.to_s end # Set the name of this thread def name=(name) @name = name.to_s end end
Version data entries
4 entries across 4 versions & 1 rubygems