mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
0ac361f540
commit
8983315238
29 changed files with 432 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue