class Xezat::Detector::Asciidoc

Public Instance Methods

detect(variables) click to toggle source
# File lib/xezat/detector/asciidoc.rb, line 8
def detect(variables)
  Find.find(variables[:S]) do |file|
    next unless file.end_with?("#{File::SEPARATOR}configure.ac", "#{File::SEPARATOR}configure.in")

    File.foreach(file) do |line|
      return true if line.include?('asciidoc')
    end
  end
  false
end