Class: PGit::CurrentProject::Validator
- Inherits:
-
Object
- Object
- PGit::CurrentProject::Validator
- Defined in:
- lib/pgit/current_project/validator.rb
Instance Method Summary collapse
-
#initialize(matching_projects) ⇒ Validator
constructor
A new instance of Validator.
Constructor Details
#initialize(matching_projects) ⇒ Validator
Returns a new instance of Validator.
4 5 6 7 8 9 |
# File 'lib/pgit/current_project/validator.rb', line 4 def initialize(matching_projects) if matching_projects.length == 0 = "None of the project paths matches the working directory" raise PGit::Error::User, end end |