Class: Reacto::Resources::SharedResource

Inherits:
Object
  • Object
show all
Defined in:
lib/reacto/resources/shared_resource.rb

Instance Method Summary collapse

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

#cleanupObject



8
9
10
11
# File 'lib/reacto/resources/shared_resource.rb', line 8

def cleanup
  @trackable.off
  @trackable = nil
end