module TextDetector::Dictionary
Public Class Methods
factory(dictionary)
click to toggle source
# File lib/text_detector/dictionary.rb, line 6 def self.factory(dictionary) case dictionary when ::IO, ::StringIO TextDetector::Dictionary::File.new(dictionary) end end