method

emit_paragraph_event

v2_2_9 - Show latest stable - Class: RDoc::I18n::Text
emit_paragraph_event(paragraph, paragraph_start_line, line_no, &block)
private

No documentation available.

# File lib/rdoc/i18n/text.rb, line 109
  def emit_paragraph_event(paragraph, paragraph_start_line, line_no, &block)
    paragraph_part = {
      :type => :paragraph,
      :line_no => paragraph_start_line,
    }
    match_data = /(\s*)\z/.match(paragraph)
    if match_data
      paragraph_part[:paragraph] = match_data.pre_match
      yield(paragraph_part)
      emit_empty_line_event(match_data[1], line_no, &block)
    else
      paragraph_part[:paragraph] = paragraph
      yield(paragraph_part)
    end
  end