Class: Oselvar::Var::Core::SegmentOffset
- Inherits:
-
Data
- Object
- Data
- Oselvar::Var::Core::SegmentOffset
- 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
-
#source_offset ⇒ Object
readonly
Returns the value of attribute source_offset.
-
#text_offset ⇒ Object
readonly
Returns the value of attribute text_offset.
Instance Attribute Details
#source_offset ⇒ Object (readonly)
Returns the value of attribute source_offset
12 13 14 |
# File 'lib/oselvar/var/core/ast.rb', line 12 def source_offset @source_offset end |
#text_offset ⇒ Object (readonly)
Returns the value of attribute text_offset
12 13 14 |
# File 'lib/oselvar/var/core/ast.rb', line 12 def text_offset @text_offset end |