Class: Xezat::Detector::Ninja

Inherits:
Object
  • Object
show all
Defined in:
lib/xezat/detector/ninja.rb

Instance Method Summary collapse

Instance Method Details

#detect(variables) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/xezat/detector/ninja.rb', line 8

def detect(variables)
  return true if variables.key?(:_meson_CYGCLASS_)

  Find.find(variables[:B]) do |file|
    return true if file.end_with?("#{File::SEPARATOR}build.ninja")
  end
  false
end