Class: Crimson::Tools::Truncator::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/crimson/tools/truncator.rb

Overview

Truncation result struct.

Instance Attribute Summary collapse

Instance Attribute Details

#full_output_pathString? (readonly)

Returns path to full output temp file.

Returns:

  • (String, nil)

    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_sizeInteger (readonly)

Returns original byte size.

Returns:

  • (Integer)

    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)

#textString (readonly)

Returns truncated text.

Returns:

  • (String)

    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_truncatedBoolean (readonly)

Returns:

  • (Boolean)


26
# File 'lib/crimson/tools/truncator.rb', line 26

Result = Struct.new(:text, :was_truncated, :full_output_path, :original_size, keyword_init: true)