1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/irb.rb lib/irb/* doc/irb: IRB 0.9.5

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
keiju 2005-04-19 19:24:59 +00:00
parent 40906c5d5d
commit f9fb21448b
34 changed files with 477 additions and 302 deletions

View file

@ -1,9 +1,9 @@
#
# irb/ext/cb.rb -
# $Release Version: 0.9$
# $Release Version: 0.9.5$
# $Revision$
# $Date$
# by Keiju ISHITSUKA(Nihon Rational Software Co.,Ltd)
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#

View file

@ -1,9 +1,9 @@
#
# history.rb -
# $Release Version: 0.9$
# $Release Version: 0.9.5$
# $Revision$
# $Date$
# by Keiju ISHITSUKA(Nihon Rational Software Co.,Ltd)
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
@ -21,8 +21,8 @@ module IRB
def set_last_value(value)
_set_last_value(value)
@workspace.evaluate self, "_ = IRB.CurrentContext.last_value"
if (@eval_history ||= nil) #and !@eval_history_values.equal?(llv)
# @workspace.evaluate self, "_ = IRB.CurrentContext.last_value"
if @eval_history #and !@eval_history_values.equal?(llv)
@eval_history_values.push @line_no, @last_value
@workspace.evaluate self, "__ = IRB.CurrentContext.instance_eval{@eval_history_values}"
end
@ -33,7 +33,7 @@ module IRB
attr_reader :eval_history
def eval_history=(no)
if no
if (@eval_history ||= nil)
if defined?(@eval_history) && @eval_history
@eval_history_values.size(no)
else
@eval_history_values = History.new(no)

View file

@ -1,8 +1,22 @@
#
# loader.rb -
# $Release Version: 0.9.5$
# $Revision$
# $Date$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
#
#
module IRB
class LoadAbort < Exception;end
module IrbLoader
@RCS_ID='-$Id$-'
alias ruby_load load
alias ruby_require require

View file

@ -1,9 +1,9 @@
#
# math-mode.rb -
# $Release Version: 0.9$
# $Release Version: 0.9.5$
# $Revision$
# $Date$
# by Keiju ISHITSUKA(Nihon Rational Software Co.,Ltd)
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#

View file

@ -1,9 +1,9 @@
#
# irb/multi-irb.rb - multiple irb module
# $Release Version: 0.9$
# $Release Version: 0.9.5$
# $Revision$
# $Date$
# by Keiju ISHITSUKA(keiju@ishitsuka.com)
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#

View file

@ -1,9 +1,9 @@
#
# irb/lib/tracer.rb -
# $Release Version: 0.9$
# $Release Version: 0.9.5$
# $Revision$
# $Date$
# by Keiju ISHITSUKA(Nihon Rational Software Co.,Ltd)
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#

View file

@ -1,9 +1,9 @@
#
# use-loader.rb -
# $Release Version: 0.9$
# $Release Version: 0.9.5$
# $Revision$
# $Date$
# by Keiju ISHITSUKA(Nihon Rational Software Co.,Ltd)
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#

View file

@ -1,9 +1,9 @@
#
# push-ws.rb -
# $Release Version: 0.9$
# $Release Version: 0.9.5$
# $Revision$
# $Date$
# by Keiju ISHITSUKA(Nihon Rational Software Co.,Ltd)
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#