Class: Oselvar::Var::Core::SegmentOffset

Inherits:
Data
  • Object
show all
Defined in:
lib/oselvar/var/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



12
13
14
# File 'lib/oselvar/var/core/ast.rb', line 12

def source_offset
  @source_offset
end

#text_offsetObject (readonly)

Returns the value of attribute text_offset

Returns:

  • (Object)

    the current value of text_offset



12
13
14
# File 'lib/oselvar/var/core/ast.rb', line 12

def text_offset
  @text_offset
end