Class: TextDetector::Dictionary::File
- Defined in:
- lib/text_detector/dictionary/file.rb
Instance Attribute Summary collapse
-
#depth ⇒ Object
readonly
Returns the value of attribute depth.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from TextDetector::Dictionary::Base
Instance Attribute Details
#depth ⇒ Object (readonly)
Returns the value of attribute depth.
7 8 9 |
# File 'lib/text_detector/dictionary/file.rb', line 7 def depth @depth end |
Instance Method Details
#lookup(member) ⇒ Object
9 10 11 |
# File 'lib/text_detector/dictionary/file.rb', line 9 def lookup(member) @dictionary.include? member end |
#members ⇒ Object
13 14 15 |
# File 'lib/text_detector/dictionary/file.rb', line 13 def members @dictionary.to_a end |