Class: Reacto::Resources::SharedResource
- Inherits:
-
Object
- Object
- Reacto::Resources::SharedResource
- Defined in:
- lib/reacto/resources/shared_resource.rb
Instance Method Summary collapse
- #cleanup ⇒ Object
-
#initialize(trackable) ⇒ SharedResource
constructor
A new instance of SharedResource.
Constructor Details
#initialize(trackable) ⇒ SharedResource
Returns a new instance of SharedResource.
4 5 6 |
# File 'lib/reacto/resources/shared_resource.rb', line 4 def initialize(trackable) @trackable = trackable end |
Instance Method Details
#cleanup ⇒ Object
8 9 10 11 |
# File 'lib/reacto/resources/shared_resource.rb', line 8 def cleanup @trackable.off @trackable = nil end |