Skip to content

Commit

Permalink
[ruby/irb] Prefer require_relative to load the files in this library
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu authored and aycabta committed Aug 18, 2020
1 parent a388e25 commit d32229e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions lib/irb.rb
Expand Up @@ -11,17 +11,17 @@
#
require "ripper"

require "irb/init"
require "irb/context"
require "irb/extend-command"
require_relative "irb/init"
require_relative "irb/context"
require_relative "irb/extend-command"

require "irb/ruby-lex"
require "irb/input-method"
require "irb/locale"
require "irb/color"
require_relative "irb/ruby-lex"
require_relative "irb/input-method"
require_relative "irb/locale"
require_relative "irb/color"

require "irb/version"
require "irb/easter-egg"
require_relative "irb/version"
require_relative "irb/easter-egg"

# IRB stands for "interactive Ruby" and is a tool to interactively execute Ruby
# expressions read from the standard input.
Expand Down
2 changes: 1 addition & 1 deletion lib/irb/xmp.rb
Expand Up @@ -10,7 +10,7 @@
#
#

require "irb"
require_relative "../irb"
require_relative "frame"

# An example printer for irb.
Expand Down

0 comments on commit d32229e

Please sign in to comment.