mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
![st0012](/assets/img/avatar_default.png)
1. `require` can mislead Ruby to load system irb's files and cause constant redefined warnings as other code loads the same module/class from lib folder. 2. Most files already use `require_relative`. https://github.com/ruby/irb/commit/848d339f2e
11 lines
198 B
Ruby
Executable file
11 lines
198 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
#
|
|
# irb.rb - interactive ruby
|
|
# $Release Version: 0.9.6 $
|
|
# $Revision$
|
|
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
|
|
#
|
|
|
|
require_relative '../lib/irb'
|
|
|
|
IRB.start(__FILE__)
|