~ubuntu-branches/ubuntu/hardy/ruby1.8/hardy-updates

« back to all changes in this revision

Viewing changes to lib/irb/cmd/subirb.rb

  • Committer: Bazaar Package Importer
  • Author(s): akira yamada
  • Date: 2007-03-13 22:11:58 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070313221158-h3oql37brlaf2go2
Tags: 1.8.6-1
* new upstream version, 1.8.6.
* libruby1.8 conflicts with libopenssl-ruby1.8 (< 1.8.6) (closes: #410018)
* changed packaging style to cdbs from dbs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/local/bin/ruby
 
2
#
 
3
#   multi.rb - 
 
4
#       $Release Version: 0.9.5$
 
5
#       $Revision: 11708 $
 
6
#       $Date: 2007-02-13 08:01:19 +0900 (Tue, 13 Feb 2007) $
 
7
#       by Keiju ISHITSUKA(keiju@ruby-lang.org)
 
8
#
 
9
# --
 
10
#
 
11
#   
 
12
#
 
13
 
 
14
require "irb/cmd/nop.rb"
 
15
require "irb/ext/multi-irb"
 
16
 
 
17
module IRB
 
18
  module ExtendCommand
 
19
    class IrbCommand<Nop
 
20
      def execute(*obj)
 
21
        IRB.irb(nil, *obj)
 
22
      end
 
23
    end
 
24
 
 
25
    class Jobs<Nop
 
26
      def execute
 
27
        IRB.JobManager
 
28
      end
 
29
    end
 
30
 
 
31
    class Foreground<Nop
 
32
      def execute(key)
 
33
        IRB.JobManager.switch(key)
 
34
      end
 
35
    end
 
36
 
 
37
    class Kill<Nop
 
38
      def execute(*keys)
 
39
        IRB.JobManager.kill(*keys)
 
40
      end
 
41
    end
 
42
  end
 
43
end