Class: PGit::CurrentProject::Validator

Inherits:
Object
  • Object
show all
Defined in:
lib/pgit/current_project/validator.rb

Instance Method Summary collapse

Constructor Details

#initialize(matching_projects) ⇒ Validator

Returns a new instance of Validator.



4
5
6
7
8
# File 'lib/pgit/current_project/validator.rb', line 4

def initialize(matching_projects)
  if matching_projects.length == 0
    raise PGit::CurrentProject::NoPathsMatchWorkingDirError.new
  end
end