Class: A
- Inherits:
-
Object
- Object
- A
- Includes:
- Singleton
- Defined in:
- lib/rubysl/singleton/singleton.rb
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.
255 256 257 |
# File 'lib/rubysl/singleton/singleton.rb', line 255 def die @die end |
#persist ⇒ Object
Returns the value of attribute persist.
255 256 257 |
# File 'lib/rubysl/singleton/singleton.rb', line 255 def persist @persist end |
Class Method Details
._load(str) ⇒ Object
262 263 264 265 |
# File 'lib/rubysl/singleton/singleton.rb', line 262 def A._load(str) instance.persist = Marshal.load(str) instance end |
Instance Method Details
#_dump(depth) ⇒ Object
256 257 258 259 |
# File 'lib/rubysl/singleton/singleton.rb', line 256 def _dump(depth) # this strips the @die information from the instance Marshal.dump(@persist,depth) end |