Class: RTesseract::Configuration
- Inherits:
-
Object
- Object
- RTesseract::Configuration
- Defined in:
- lib/rtesseract.rb
Instance Attribute Summary collapse
-
#lang ⇒ Object
Returns the value of attribute lang.
-
#processor ⇒ Object
Returns the value of attribute processor.
-
#psm ⇒ Object
Returns the value of attribute psm.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
48 49 50 |
# File 'lib/rtesseract.rb', line 48 def initialize @processor = 'rmagick' end |
Instance Attribute Details
#lang ⇒ Object
Returns the value of attribute lang.
46 47 48 |
# File 'lib/rtesseract.rb', line 46 def lang @lang end |
#processor ⇒ Object
Returns the value of attribute processor.
46 47 48 |
# File 'lib/rtesseract.rb', line 46 def processor @processor end |
#psm ⇒ Object
Returns the value of attribute psm.
46 47 48 |
# File 'lib/rtesseract.rb', line 46 def psm @psm end |
Instance Method Details
#to_hash ⇒ Object
52 53 54 |
# File 'lib/rtesseract.rb', line 52 def to_hash {processor: @processor, lang: lang, psm: psm} end |