Permalink
Browse files

Add irb to bin

  • Loading branch information...
1 parent cb4626f commit 5b8688722501d722a4743dc06e5895e0ff833865 @enebo enebo committed Feb 8, 2011
Showing with 21 additions and 0 deletions.
  1. +21 −0 bin/irb
View
21 bin/irb
@@ -0,0 +1,21 @@
+#!/usr/bin/env jruby
+#
+# 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.setup(__FILE__)
+ end
+end

0 comments on commit 5b86887

Please sign in to comment.