Sha256: 9bd483d157063cdca00e4a0792311dc75c7f2f4b939b02d84d309f1eb209741d

Contents?: true

Size: 423 Bytes

Versions: 3

Compression:

Stored size: 423 Bytes

Contents

require 'linguist/blob_helper'
require 'linguist/generated'
require 'linguist/heuristics'
require 'linguist/language'
require 'linguist/repository'
require 'linguist/samples'
require 'linguist/shebang'
require 'linguist/version'

class << Linguist
  attr_accessor :instrumenter

  def instrument(*args, &bk)
    if instrumenter
      instrumenter.instrument(*args, &bk)
    elsif block_given?
      yield
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
github-linguist-4.7.6 lib/linguist.rb
github-linguist-4.7.5 lib/linguist.rb
github-linguist-4.7.4 lib/linguist.rb