Class: Xberg::VlmFallbackPolicyAlways

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
VlmFallbackPolicy
Defined in:
lib/xberg/native.rb

Overview

Skip the classical OCR backend entirely. Every page is sent to the VLM.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_hash(hash) ⇒ Object



5228
5229
5230
# File 'lib/xberg/native.rb', line 5228

def self.from_hash(hash)
  new
end

Instance Method Details

#always?Boolean

Returns:

  • (Boolean)


5224
5225
5226
# File 'lib/xberg/native.rb', line 5224

def always? = true
# @param hash [Hash] deserialized from the native extension
# @return [self]

#disabled?Boolean

Returns:

  • (Boolean)


5220
# File 'lib/xberg/native.rb', line 5220

def disabled? = false

#on_low_quality?Boolean

Returns:

  • (Boolean)


5222
# File 'lib/xberg/native.rb', line 5222

def on_low_quality? = false