[Borges-users] StateHolder
Слепнев Владимир
slepnev_v at rambler.ru
Thu Apr 29 13:29:34 EDT 2004
I don't understand why StateHolder needs all this class << self thing.
Here's my take:
class Borges::StateHolder
attr_accessor :contents
def initialize(contents)
@contents = contents
Borges::Session.current_session.register_for_backtracking(self)
end
end
Or maybe I'm just being stupid? This version seems to work for my app,
and I really don't understand how it is different from the original in
functionality.
Vladimir Slepnev
More information about the Borges-users
mailing list