Class: Xezat::Detector::XorgUtilMacros
- Inherits:
-
Object
- Object
- Xezat::Detector::XorgUtilMacros
- Defined in:
- lib/xezat/detector/xorg-util-macros.rb
Instance Method Summary collapse
Instance Method Details
#detect?(variables) ⇒ Boolean
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/xezat/detector/xorg-util-macros.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.start_with?('XORG_MACROS_VERSION') end end false end |