Class: Xezat::Detector::GobjectIntrospection
- Inherits:
-
Object
- Object
- Xezat::Detector::GobjectIntrospection
- Defined in:
- lib/xezat/detector/gobject-introspection.rb
Instance Method Summary collapse
Instance Method Details
#detect(variables) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/xezat/detector/gobject-introspection.rb', line 9 def detect(variables) Find::find(variables[:S]) do |file| if file.end_with?(File::SEPARATOR + 'configure.ac') || file.end_with?(File::SEPARATOR + 'configure.in') File::foreach(file) do |line| return true if line.lstrip.start_with?('GOBJECT_INTROSPECTION_CHECK') end end end false end |