Guest User

Untitled

a guest
Apr 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2. # File: script/console
  3. irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
  4.  
  5. libs = " -r irb/completion"
  6. # Perhaps use a console_lib to store any extra methods I may want available in the cosole
  7. # libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
  8. libs << " -r #{File.dirname(__FILE__) + '/../lib/test.rb'}"
  9. puts "Loading test gem"
  10. exec "#{irb} #{libs} --simple-prompt"
Add Comment
Please, Sign In to add comment