Sha256: c3d4b69b288593a6c57c5242e8cbcc07093147bd149e58c3080bdc2fe15c1363

Contents?: true

Size: 269 Bytes

Versions: 8

Compression:

Stored size: 269 Bytes

Contents

# frozen_string_literal: true

require 'find'

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xezat-0.3.1 lib/xezat/detector/halibut.rb
xezat-0.3.0 lib/xezat/detector/halibut.rb
xezat-0.2.3 lib/xezat/detector/halibut.rb
xezat-0.2.2 lib/xezat/detector/halibut.rb
xezat-0.2.1 lib/xezat/detector/halibut.rb
xezat-0.2.0 lib/xezat/detector/halibut.rb
xezat-0.1.2 lib/xezat/detector/halibut.rb
xezat-0.1.1 lib/xezat/detector/halibut.rb