Class: Propolize::BlankTerminatedChunk

Inherits:
LinesChunk
  • Object
show all
Defined in:
lib/propolize.rb

Overview

A chunk which is a group of lines terminated by a following blank line

Direct Known Subclasses

ListChunk, ParagraphChunk, PropositionChunk

Instance Attribute Summary

Attributes inherited from LinesChunk

#lines

Instance Method Summary collapse

Methods inherited from LinesChunk

#addLine, #initialize, #postProcess

Constructor Details

This class inherits a constructor from Propolize::LinesChunk

Instance Method Details

#critiqueValueObject



792
793
794
795
796
797
798
# File 'lib/propolize.rb', line 792

def critiqueValue
  if @isCritique then 
    return "(is critique) " 
  else 
    return "" 
  end
end

#isTerminatedBy?(line) ⇒ Boolean

Returns:

  • (Boolean)


788
789
790
# File 'lib/propolize.rb', line 788

def isTerminatedBy?(line)
  return /^\s*$/.match(line)
end