diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-09 06:44:45 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-09 06:44:45 +0000 |
commit | 303dc3c591e324b6bbc691326d8bea76fe3b8fda (patch) | |
tree | 51d384de3922135bc42514af63da8aa4587a44cb /ext/tk/sample/irbtk.rb | |
parent | f82df94f390a104be47b57e45801409be23954a9 (diff) |
* ext/tk: Tk is removed from stdlib. [Feature #8539]
https://github.com/ruby/tk is the new upstream.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample/irbtk.rb')
-rw-r--r-- | ext/tk/sample/irbtk.rb | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/ext/tk/sample/irbtk.rb b/ext/tk/sample/irbtk.rb deleted file mode 100644 index 8665b20539..0000000000 --- a/ext/tk/sample/irbtk.rb +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/local/bin/ruby -# frozen_string_literal: false -# -# irbtk.rb - irb with Ruby/Tk -# -# If you want to use 'multi-tk.rb', give option '--multi-tk'. -# And if you want to use 'remote-tk.rb', give option '--remote-tk'. -# If you want both, you don't need to give both options, because -# 'remote-tk.rb' includes 'multi-tk.rb'. -# ( There is no trouble even if you give both options. ) -# -require 'remote-tk' if ARGV.delete('--remote-tk') -require 'multi-tk' if ARGV.delete('--multi-tk') - -require "tk" -module Tk - MAINLOOP = Thread.new{ mainloop } -end - -require "irb" - -if __FILE__ == $0 - IRB.start(__FILE__) -else - # check -e option - if /^-e$/ =~ $0 - IRB.start(__FILE__) - else - IRB.setup(__FILE__) - end -end |