Class: Xezat::Detector::Halibut

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

Instance Method Summary collapse

Instance Method Details

#detect?(variables) ⇒ Boolean

Returns:

  • (Boolean)


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

def detect?(variables)
  Find.find(variables[:S]) do |file|
    return true if file.end_with?('.but')
  end
  false
end