summaryrefslogtreecommitdiff
path: root/bin/irb
diff options
context:
space:
mode:
Diffstat (limited to 'bin/irb')
-rw-r--r--bin/irb21
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/irb b/bin/irb
new file mode 100644
index 0000000..58f3699
--- /dev/null
+++ b/bin/irb
@@ -0,0 +1,21 @@
+#!/usr/bin/env ruby
+#
+# irb.rb - intaractive ruby
+# $Release Version: 0.7.3 $
+# $Revision$
+# $Date$
+# by Keiju ISHITSUKA(keiju@ishitsuka.com)
+#
+
+require "irb"
+
+if __FILE__ == $0
+ IRB.start(__FILE__)
+else
+ # check -e option
+ if /^-e$/ =~ $0
+ IRB.start(__FILE__)
+ else
+ IRB.initialize(__FILE__)
+ end
+end