job management class
Methods
- D
- I
- K
- M
- N
- S
- T
Attributes
[RW] | current_job |
Class Public methods
new()
Link
Instance Public methods
delete(key)
Link
# File ../ruby/lib/irb/ext/multi-irb.rb, line 86 def delete(key) case key when Integer IRB.fail NoSuchJob, key unless @jobs[key] @jobs[key] = nil else catch(:EXISTS) do @jobs.each_index do |i| if @jobs[i] and (@jobs[i][0] == key || @jobs[i][1] == key || @jobs[i][1].context.main.equal?(key)) @jobs[i] = nil throw :EXISTS end end IRB.fail NoSuchJob, key end end until assoc = @jobs.pop; end unless @jobs.empty? @jobs.push assoc end
insert(irb)
Link
inspect()
Link
# File ../ruby/lib/irb/ext/multi-irb.rb, line 109 def inspect ary = [] @jobs.each_index do |i| th, irb = @jobs[i] next if th.nil? if th.alive? if th.stop? t_status = "stop" else t_status = "running" end else t_status = "exited" end ary.push format("#%d->%s on %s (%s: %s)", i, irb.context.irb_name, irb.context.main, th, t_status) end ary.join("\n") end
irb(key)
Link
kill(*keys)
Link
main_irb()
Link
main_thread()
Link
n_jobs()
Link
search(key)
Link
switch(key)
Link