Class: Markbridge::Processors::DiscourseMarkdown::Detectors::Match

Inherits:
Data
  • Object
show all
Defined in:
lib/markbridge/processors/discourse_markdown/detectors/base.rb

Overview

Result of a successful detection

Instance Attribute Summary collapse

Instance Attribute Details

#end_posInteger (readonly)

end position in input (exclusive)

Returns:

  • (Integer)

    the current value of end_pos



11
12
13
# File 'lib/markbridge/processors/discourse_markdown/detectors/base.rb', line 11

def end_pos
  @end_pos
end

#nodeAST::Node (readonly)

the AST node representing the detected construct

Returns:



11
12
13
# File 'lib/markbridge/processors/discourse_markdown/detectors/base.rb', line 11

def node
  @node
end

#start_posInteger (readonly)

start position in input

Returns:

  • (Integer)

    the current value of start_pos



11
12
13
# File 'lib/markbridge/processors/discourse_markdown/detectors/base.rb', line 11

def start_pos
  @start_pos
end