mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
9f43a64c86
commit
93c4f8b360
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue