Class: DiffRenderer::ParagraphBlock::BaseParagraph

Inherits:
Object
  • Object
show all
Defined in:
lib/diffrenderer/paragraph_block.rb

Direct Known Subclasses

ClassfulParagraph, PlainParagraph

Instance Method Summary collapse

Constructor Details

#initialize(context_change) ⇒ BaseParagraph

Returns a new instance of BaseParagraph.



27
28
29
# File 'lib/diffrenderer/paragraph_block.rb', line 27

def initialize(context_change)
  @context_change = context_change
end

Instance Method Details

#to_sObject



31
32
33
# File 'lib/diffrenderer/paragraph_block.rb', line 31

def to_s
  HtmlParagraph.new(content, html_class_string).to_s
end