Class: Ddr::FileTools::Command
- Inherits:
-
Object
- Object
- Ddr::FileTools::Command
- Defined in:
- lib/ddr/filetools/command.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
Instance Method Summary collapse
- #call(file_path) ⇒ Object
-
#initialize(provider) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(provider) ⇒ Command
Returns a new instance of Command.
7 8 9 |
# File 'lib/ddr/filetools/command.rb', line 7 def initialize(provider) @provider = provider end |
Instance Attribute Details
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
5 6 7 |
# File 'lib/ddr/filetools/command.rb', line 5 def provider @provider end |
Instance Method Details
#call(file_path) ⇒ Object
11 12 13 |
# File 'lib/ddr/filetools/command.rb', line 11 def call(file_path) raise NotImplementedError, "Subclasses must implement `call`." end |