method
[]
[](idx)
public
Hide source
# File lib/irb/ext/history.rb, line 66 def [](idx) begin if idx >= 0 @contents.find{|no, val| no == idx}[1] else @contents[idx][1] end rescue NameError nil end end