module TextDetector::Detector
Public Class Methods
factory(type, dictionary)
click to toggle source
# File lib/text_detector/detector.rb, line 6 def self.factory(type, dictionary) case type when :simple TextDetector::Detector::Simple.new(dictionary) when :regexp TextDetector::Detector::Regexp.new(dictionary) else raise NameError end end