diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-13 05:22:30 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-13 05:22:30 +0000 |
commit | 89833152381b759482d5e0ae9dcbdd9ed29a2b6a (patch) | |
tree | ab615431bccab8bde95bb57d893ecea4b2bd4405 /lib/irb/ext/history.rb | |
parent | 0ac361f54060a26f771d8751f06bbd1013db2016 (diff) | |
download | ruby-89833152381b759482d5e0ae9dcbdd9ed29a2b6a.tar.gz |
* lib/irb*: merge doc from doc/irb/ird.rd and improve overall
documentation of IRB
* doc/irb/irb.rd: remove stale documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/ext/history.rb')
-rw-r--r-- | lib/irb/ext/history.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/irb/ext/history.rb b/lib/irb/ext/history.rb index 1495f9eb14..4d036e7cf0 100644 --- a/lib/irb/ext/history.rb +++ b/lib/irb/ext/history.rb @@ -9,7 +9,7 @@ # # -module IRB +module IRB # :nodoc: class Context @@ -29,7 +29,17 @@ module IRB @last_value end + # The command result history limit. attr_reader :eval_history + # Sets command result history limit. + # + # +no+ is an Integer or +nil+. + # + # Returns +no+ of history items if greater than 0. + # + # If +no+ is 0, the number of history items is unlimited. + # + # If +no+ is +nil+, execution result history isn't used (default). def eval_history=(no) if no if defined?(@eval_history) && @eval_history |