Sha256: 9cabf19326831b84a1e0bc6b1e73f2de624d02838ef5aaba9935918255dbe569
Contents?: true
Size: 315 Bytes
Versions: 22
Compression:
Stored size: 315 Bytes
Contents
module LicenseFinder class PossibleLicenseFile def initialize(path) @path = Pathname(path) end def path @path.to_s end def license License.find_by_text(text) end def text @text ||= (@path.respond_to?(:binread) ? @path.binread : @path.read) end end end
Version data entries
22 entries across 22 versions & 1 rubygems