Sha256: ba31cb16b0b21ae57d33ff589d2756e21874abbb903f833349af57176f4faf93
Contents?: true
Size: 510 Bytes
Versions: 6
Compression:
Stored size: 510 Bytes
Contents
# frozen_string_literal: true module Spandx module Core class Parser UNKNOWN = Class.new do def self.parse(*_args) [] end end def matches?(_filename) raise ::Spandx::Error, :matches? end def parse(_dependency) raise ::Spandx::Error, :parse end class << self include Registerable def for(path) find { |x| x.matches?(File.basename(path)) } || UNKNOWN end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems