Class: RTesseract::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rtesseract.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



48
49
50
# File 'lib/rtesseract.rb', line 48

def initialize
  @processor = 'rmagick'
end

Instance Attribute Details

#langObject

Returns the value of attribute lang.



46
47
48
# File 'lib/rtesseract.rb', line 46

def lang
  @lang
end

#processorObject

Returns the value of attribute processor.



46
47
48
# File 'lib/rtesseract.rb', line 46

def processor
  @processor
end

#psmObject

Returns the value of attribute psm.



46
47
48
# File 'lib/rtesseract.rb', line 46

def psm
  @psm
end

Instance Method Details

#to_hashObject



52
53
54
# File 'lib/rtesseract.rb', line 52

def to_hash
  {processor: @processor, lang: lang, psm: psm}
end