Class: Distem::Algorithm::Algorithm
- Inherits:
-
Object
- Object
- Distem::Algorithm::Algorithm
- Defined in:
- lib/distem/algorithm/algorithm.rb
Overview
Interface that give the way Algorithms should work
Direct Known Subclasses
Instance Method Summary (collapse)
-
- (Object) apply(resource)
Apply the algorithm on a resource.
-
- (Algorithm) initialize
constructor
A new instance of Algorithm.
-
- (Object) undo(resource)
Undo the algorithm on a resource.
Constructor Details
- (Algorithm) initialize
Returns a new instance of Algorithm
7 8 |
# File 'lib/distem/algorithm/algorithm.rb', line 7 def initialize() end |
Instance Method Details
- (Object) apply(resource)
Apply the algorithm on a resource
11 12 13 |
# File 'lib/distem/algorithm/algorithm.rb', line 11 def apply(resource) undo(resource) end |
- (Object) undo(resource)
Undo the algorithm on a resource
16 17 |
# File 'lib/distem/algorithm/algorithm.rb', line 16 def undo(resource) end |