Class: A
Constant Summary
Constants included from Singleton
Instance Attribute Summary collapse
-
#die ⇒ Object
Returns the value of attribute die.
-
#persist ⇒ Object
Returns the value of attribute persist.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Singleton
Instance Attribute Details
#die ⇒ Object
Returns the value of attribute die
301 302 303 |
# File 'lib/singleton.rb', line 301 def die @die end |
#persist ⇒ Object
Returns the value of attribute persist
301 302 303 |
# File 'lib/singleton.rb', line 301 def persist @persist end |
Class Method Details
._load(str) ⇒ Object
308 309 310 311 |
# File 'lib/singleton.rb', line 308 def A._load(str) instance.persist = Marshal.load(str) instance end |
Instance Method Details
#_dump(depth) ⇒ Object
302 303 304 305 |
# File 'lib/singleton.rb', line 302 def _dump(depth) # this strips the @die information from the instance Marshal.dump(@persist,depth) end |