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