class TextDetector::Detector::Base

Attributes

dictionary[R]

Public Class Methods

new(dictionary) click to toggle source
# File lib/text_detector/detector/base.rb, line 6
def initialize(dictionary)
  @dictionary = dictionary
  setup
end

Public Instance Methods

detect(text) click to toggle source
# File lib/text_detector/detector/base.rb, line 11
def detect(text)
  raise NotImplementedError
end
detect_all(text) click to toggle source
# File lib/text_detector/detector/base.rb, line 15
def detect_all(text)
  raise NotImplementedError
end

Protected Instance Methods

setup() click to toggle source
# File lib/text_detector/detector/base.rb, line 21
def setup
end