Sha256: ce9b6f07c7270fa6b33b622da1e0211819d9d1537696ec06ea1c42fd95b1cdd7

Contents?: true

Size: 272 Bytes

Versions: 44

Compression:

Stored size: 272 Bytes

Contents

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

44 entries across 44 versions & 1 rubygems

Version Path
sapience-2.4.0 lib/sapience/core_ext/thread.rb
sapience-2.3.5 lib/sapience/core_ext/thread.rb
sapience-2.3.4 lib/sapience/core_ext/thread.rb
sapience-2.3.3 lib/sapience/core_ext/thread.rb
sapience-2.2.3 lib/sapience/core_ext/thread.rb
sapience-2.2.1 lib/sapience/core_ext/thread.rb
sapience-2.2.0 lib/sapience/core_ext/thread.rb
sapience-2.1.0 lib/sapience/core_ext/thread.rb
sapience-2.0.5 lib/sapience/core_ext/thread.rb
sapience-2.0.4 lib/sapience/core_ext/thread.rb
sapience-2.0.3 lib/sapience/core_ext/thread.rb
sapience-2.0.2 lib/sapience/core_ext/thread.rb
sapience-2.0.1 lib/sapience/core_ext/thread.rb
sapience-2.0.0 lib/sapience/core_ext/thread.rb
sapience-1.0.15 lib/sapience/core_ext/thread.rb
sapience-1.0.14 lib/sapience/core_ext/thread.rb
sapience-1.0.13 lib/sapience/core_ext/thread.rb
sapience-1.0.12 lib/sapience/core_ext/thread.rb
sapience-1.0.11 lib/sapience/core_ext/thread.rb
sapience-1.0.10 lib/sapience/core_ext/thread.rb