Class: Glossarist::DatasetValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/glossarist/dataset_validator.rb

Instance Method Summary collapse

Instance Method Details

#validate(path, strict: false, reference_path: nil) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/glossarist/dataset_validator.rb', line 5

def validate(path, strict: false, reference_path: nil)
  if File.extname(path).downcase == ".gcr"
    validate_gcr(path, reference_path: reference_path)
  else
    validate_directory(path, reference_path: reference_path)
  end
end