Class: DiffRenderer::ParagraphBlock::BaseParagraph
- Inherits:
-
Object
- Object
- DiffRenderer::ParagraphBlock::BaseParagraph
- Defined in:
- lib/diffrenderer/paragraph_block.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(context_change) ⇒ BaseParagraph
constructor
A new instance of BaseParagraph.
- #to_s ⇒ Object
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_s ⇒ Object
31 32 33 |
# File 'lib/diffrenderer/paragraph_block.rb', line 31 def to_s HtmlParagraph.new(content, html_class_string).to_s end |