method
push
push(no, val)
public
Hide source
# File lib/irb/ext/history.rb, line 87 def push(no, val) @contents.push [no, val] @contents.shift if @size != 0 && @contents.size > @size end