Module: TextDetector::Dictionary

Defined in:
lib/text_detector/dictionary.rb,
lib/text_detector/dictionary/base.rb,
lib/text_detector/dictionary/file.rb

Defined Under Namespace

Classes: Base, File

Class Method Summary collapse

Class Method Details

.factory(dictionary) ⇒ Object



5
6
7
8
9
10
# File 'lib/text_detector/dictionary.rb', line 5

def self.factory(dictionary)
  case dictionary
  when ::File
    TextDetector::Dictionary::File.new(dictionary)
  end
end