Module: LanguageSniffer

Defined in:
lib/language_sniffer.rb,
lib/language_sniffer/version.rb,
lib/language_sniffer/language.rb,
lib/language_sniffer/pathname.rb,
lib/language_sniffer/file_blob.rb,
lib/language_sniffer/blob_helper.rb

Defined Under Namespace

Modules: BlobHelper, Version Classes: FileBlob, Language, Pathname

Class Method Summary collapse

Class Method Details

.detect(path, options = {}) ⇒ Object



7
8
9
# File 'lib/language_sniffer.rb', line 7

def self.detect(path, options={})
  FileBlob.new(path, options[:pwd], options[:content])
end