class LicenseFinder::PossibleLicenseFile

def initialize(path)

def initialize(path)
  @path = Pathname(path)
end

def license

def license
  License.find_by_text(text)
end

def path

def path
  @path.to_s
end

def text

def text
  @text ||= (@path.respond_to?(:binread) ? @path.binread : @path.read)
end