Class: Varar::Core::SegmentOffset

Inherits:
Data
  • Object
show all
Defined in:
lib/varar/core/ast.rb

Overview

Maps a block-text offset to its source offset. Block text is the raw source minus BLOCK markers only (list bullets, blockquote > prefixes); inline markup is never stripped. A paragraph/list item has a single entry; a blockquote one entry per quoted line.

Instance Attribute Summary collapse

Instance Attribute Details

#source_offsetObject (readonly)

Returns the value of attribute source_offset

Returns:

  • (Object)

    the current value of source_offset



11
12
13
# File 'lib/varar/core/ast.rb', line 11

def source_offset
  @source_offset
end

#text_offsetObject (readonly)

Returns the value of attribute text_offset

Returns:

  • (Object)

    the current value of text_offset



11
12
13
# File 'lib/varar/core/ast.rb', line 11

def text_offset
  @text_offset
end