Class: Coradoc::Markdown::HorizontalRule

Inherits:
Base
  • Object
show all
Defined in:
lib/coradoc/markdown/model/horizontal_rule.rb

Overview

HorizontalRule model representing a Markdown horizontal rule (—, ***, _).

Instance Method Summary collapse

Methods inherited from Base

#serialize_content, #to_h, #to_md, visit, #visit

Constructor Details

#initialize(style: '---') ⇒ HorizontalRule

Returns a new instance of HorizontalRule.



10
11
12
13
# File 'lib/coradoc/markdown/model/horizontal_rule.rb', line 10

def initialize(style: '---')
  super()
  @style = style
end