class ForkHandle::Key

Public Class Methods

new(pid, tid, key) click to toggle source
# File lib/forkhandle.rb, line 28
def initialize(pid, tid, key)
  @pid = pid
  @tid = tid
  @key = key
end

Public Instance Methods

for(*args) click to toggle source
# File lib/forkhandle.rb, line 19
def for(*args)
  case
    when args.size == 1 && args.first.is_a?(Key)
      args.first
    else
      new(*args)
  end
end