Class: Kreuzberg::NoChunkingReasonFormatNotChunkable
- Inherits:
-
Data
- Object
- Data
- Kreuzberg::NoChunkingReasonFormatNotChunkable
- Extended by:
- T::Sig
- Includes:
- NoChunkingReason
- Defined in:
- lib/kreuzberg/native.rb
Overview
Document format does not support chunking.
Instance Attribute Summary collapse
-
#mime_type ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
- #chunking_disabled? ⇒ Boolean
- #fast_text_extraction? ⇒ Boolean
- #few_pages? ⇒ Boolean
- #format_not_chunkable? ⇒ Boolean
- #small_file? ⇒ Boolean
- #text_layer_detected? ⇒ Boolean
Instance Attribute Details
#mime_type ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4233 4234 4235 |
# File 'lib/kreuzberg/native.rb', line 4233 def mime_type @mime_type end |
Class Method Details
.from_hash(hash) ⇒ Object
4255 4256 4257 |
# File 'lib/kreuzberg/native.rb', line 4255 def self.from_hash(hash) new(mime_type: hash[:mime_type] || hash["mime_type"]) end |
Instance Method Details
#chunking_disabled? ⇒ Boolean
4249 |
# File 'lib/kreuzberg/native.rb', line 4249 def chunking_disabled? = false |
#fast_text_extraction? ⇒ Boolean
4251 4252 4253 |
# File 'lib/kreuzberg/native.rb', line 4251 def fast_text_extraction? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#few_pages? ⇒ Boolean
4243 |
# File 'lib/kreuzberg/native.rb', line 4243 def few_pages? = false |
#format_not_chunkable? ⇒ Boolean
4247 |
# File 'lib/kreuzberg/native.rb', line 4247 def format_not_chunkable? = true |
#small_file? ⇒ Boolean
4241 |
# File 'lib/kreuzberg/native.rb', line 4241 def small_file? = false |
#text_layer_detected? ⇒ Boolean
4245 |
# File 'lib/kreuzberg/native.rb', line 4245 def text_layer_detected? = false |