Path: lib/Borges/Utilities/StateHolder.rb
Last Update: Thu Apr 29 18:07:41 PDT 2004

A Borges::StateHolder backtracks itself, restoring previous versions of the object it holds when a user uses the back button. The StateHolder does not backtrack the object it holds.

For example:

  obj = 5
  st = obj
  # page is rendered, user causes this action to take place:
  st.contents = 7
  # user goes back to the first page
  puts st.contents # => 5