Class: TextDetector::Detector::Base
- Inherits:
-
Object
- Object
- TextDetector::Detector::Base
- Defined in:
- lib/text_detector/detector/base.rb
Instance Attribute Summary collapse
-
#dictionary ⇒ Object
readonly
Returns the value of attribute dictionary.
Instance Method Summary collapse
- #detect(text) ⇒ Object
- #detect_all(text) ⇒ Object
-
#initialize(dictionary) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(dictionary) ⇒ Base
Returns a new instance of Base.
6 7 8 9 |
# File 'lib/text_detector/detector/base.rb', line 6 def initialize(dictionary) @dictionary = dictionary setup end |
Instance Attribute Details
#dictionary ⇒ Object (readonly)
Returns the value of attribute dictionary.
4 5 6 |
# File 'lib/text_detector/detector/base.rb', line 4 def dictionary @dictionary end |
Instance Method Details
#detect(text) ⇒ Object
11 12 13 |
# File 'lib/text_detector/detector/base.rb', line 11 def detect(text) raise NotImplementedError end |
#detect_all(text) ⇒ Object
15 16 17 |
# File 'lib/text_detector/detector/base.rb', line 15 def detect_all(text) raise NotImplementedError end |