Class: Yes::Core::Commands::Validator Abstract
- Inherits:
-
Object
- Object
- Yes::Core::Commands::Validator
- Defined in:
- lib/yes/core/commands/validator.rb
Overview
This class is abstract.
Subclass and override Validator.call to implement a custom command validator.
Constant Summary collapse
Class Method Summary collapse
-
.call(command) ⇒ Object
Validates the given command.
Class Method Details
.call(command) ⇒ Object
Validates the given command. Must be implemented by subclasses.
22 23 24 |
# File 'lib/yes/core/commands/validator.rb', line 22 def self.call(command) raise NotImplementedError end |