Class: Cleaner::Action
- Inherits:
-
Object
- Object
- Cleaner::Action
- Defined in:
- lib/cleaner/action.rb
Direct Known Subclasses
Cleaner::Actions::Copy, Cleaner::Actions::Delete, Cleaner::Actions::Label, Cleaner::Actions::Move
Defined Under Namespace
Classes: NotImplementedException, UnknownActionException
Instance Attribute Summary collapse
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(files, options = {}) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(files, options = {}) ⇒ Action
Returns a new instance of Action.
5 6 7 8 |
# File 'lib/cleaner/action.rb', line 5 def initialize(files, = {}) @files = files @options = end |
Instance Attribute Details
#files ⇒ Object (readonly)
Returns the value of attribute files.
3 4 5 |
# File 'lib/cleaner/action.rb', line 3 def files @files end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/cleaner/action.rb', line 3 def @options end |
Instance Method Details
#execute ⇒ Object
10 11 12 |
# File 'lib/cleaner/action.rb', line 10 def execute raise NotImplementedException.new("#execute should be implemented in your Action class") end |