diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-20 07:54:58 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-20 07:54:58 +0000 |
commit | 93c4f8b360269b6eace2c92db911cf554d436deb (patch) | |
tree | 84a014a19a532508c40632a0a77cb1bdd9d10438 | |
parent | 9f43a64c8624566c15716522b3db6d5fdf1b7889 (diff) | |
download | ruby-93c4f8b360269b6eace2c92db911cf554d436deb.tar.gz |
Merge irb from github repository.
* IRB::VERSION is available on irb session.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | lib/irb.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/irb.rb b/lib/irb.rb index a7ab9d7bce..85953346a7 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -19,6 +19,8 @@ require "irb/ruby-lex" require "irb/input-method" require "irb/locale" +require "irb/version" + # IRB stands for "interactive Ruby" and is a tool to interactively execute Ruby # expressions read from the standard input. # @@ -354,7 +356,6 @@ module IRB def IRB.version if v = @CONF[:VERSION] then return v end - require "irb/version" rv = @RELEASE_VERSION.sub(/\.0/, "") @CONF[:VERSION] = format("irb %s(%s)", rv, @LAST_UPDATE_DATE) end |