Class: Crimson::Tools::Truncator::Result
- Inherits:
-
Struct
- Object
- Struct
- Crimson::Tools::Truncator::Result
- Defined in:
- lib/crimson/tools/truncator.rb
Overview
Truncation result struct.
Instance Attribute Summary collapse
-
#full_output_path ⇒ String?
readonly
Path to full output temp file.
-
#original_size ⇒ Integer
readonly
Original byte size.
-
#text ⇒ String
readonly
Truncated text.
- #was_truncated ⇒ Boolean readonly
Instance Attribute Details
#full_output_path ⇒ String? (readonly)
Returns path to full output temp file.
26 |
# File 'lib/crimson/tools/truncator.rb', line 26 Result = Struct.new(:text, :was_truncated, :full_output_path, :original_size, keyword_init: true) |
#original_size ⇒ Integer (readonly)
Returns original byte size.
26 |
# File 'lib/crimson/tools/truncator.rb', line 26 Result = Struct.new(:text, :was_truncated, :full_output_path, :original_size, keyword_init: true) |
#text ⇒ String (readonly)
Returns truncated text.
26 |
# File 'lib/crimson/tools/truncator.rb', line 26 Result = Struct.new(:text, :was_truncated, :full_output_path, :original_size, keyword_init: true) |
#was_truncated ⇒ Boolean (readonly)
26 |
# File 'lib/crimson/tools/truncator.rb', line 26 Result = Struct.new(:text, :was_truncated, :full_output_path, :original_size, keyword_init: true) |