1
0
Fork 0
mirror of https://github.com/rubyjs/therubyrhino synced 2023-03-27 23:21:34 -04:00
therubyrhino/script/console
2009-10-09 18:35:49 -05:00

10 lines
No EOL
440 B
Ruby
Executable file

#!/usr/bin/env jruby
# File: script/console
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
libs = " -r irb/completion"
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
libs << " -r #{File.dirname(__FILE__) + '/../lib/rhino.rb'}"
puts "Loading therubyrhino gem"
exec "#{irb} #{libs} --simple-prompt"