Class: DiffRenderer::ParagraphBlock::AddedParagraph

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

Instance Method Summary collapse

Methods inherited from ClassfulParagraph

#html_class_string

Methods inherited from BaseParagraph

#initialize, #to_s

Constructor Details

This class inherits a constructor from DiffRenderer::ParagraphBlock::BaseParagraph

Instance Method Details

#classesObject



70
71
72
# File 'lib/diffrenderer/paragraph_block.rb', line 70

def classes
  %w[ added ]
end

#contentObject



73
74
75
# File 'lib/diffrenderer/paragraph_block.rb', line 73

def content
  @context_change.new_element
end