struct

Xerp::Query::Snippet::SnippetResult

Inherits Struct < Value < Object

Result of snippet extraction.

  • content: raw lines joined by newlines, with "..." for gaps
  • snippet_start: 1-indexed line number where snippet starts (block start)
  • error: error message if extraction failed

Constructors

new(content : String, snippet_start : Int32, error : String | Nil)
Source

Instance methods

clone
Source
content
copy_with(content _content = @content, snippet_start _snippet_start = @snippet_start, error _error = @error)
Source
error
snippet_start