Sha256: da484548160e2fa08aa6dabafc13574cc8c06c0524887c067bbbe79196b49ccf
Contents?: true
Size: 334 Bytes
Versions: 6
Compression:
Stored size: 334 Bytes
Contents
module CopyleaksApi module Validators class LanguageValidator class << self # raise error if given language is not allowed def validate!(language) raise UnknownLanguageError, "#{language} is unknown" unless Language::ALLOWED.include?(language) end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems