method
eval_history=
v1_8_7_330 -
Show latest stable
- Class:
IRB::Context
eval_history=(no)public
No documentation available.
# File lib/irb/ext/history.rb, line 34
def eval_history=(no)
if no
if defined?(@eval_history) && @eval_history
@eval_history_values.size(no)
else
@eval_history_values = History.new(no)
IRB.conf[:__TMP__EHV__] = @eval_history_values
@workspace.evaluate(self, "__ = IRB.conf[:__TMP__EHV__]")
IRB.conf.delete(:__TMP_EHV__)
end
else
@eval_history_values = nil
end
@eval_history = no
end