Class: Qiita::Markdown::Greenmat::HeadingRendering::AbstractHeading
- Inherits:
-
Object
- Object
- Qiita::Markdown::Greenmat::HeadingRendering::AbstractHeading
- Defined in:
- lib/qiita/markdown/greenmat/heading_rendering.rb
Instance Attribute Summary collapse
-
#counter ⇒ Object
readonly
Returns the value of attribute counter.
-
#escape_html ⇒ Object
(also: #escape_html?)
readonly
Returns the value of attribute escape_html.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#raw_body ⇒ Object
readonly
Returns the value of attribute raw_body.
Instance Method Summary collapse
- #increment ⇒ Object
-
#initialize(raw_body, level, counter, escape_html = false) ⇒ AbstractHeading
constructor
A new instance of AbstractHeading.
- #to_s ⇒ Object
Constructor Details
#initialize(raw_body, level, counter, escape_html = false) ⇒ AbstractHeading
Returns a new instance of AbstractHeading.
13 14 15 16 17 18 |
# File 'lib/qiita/markdown/greenmat/heading_rendering.rb', line 13 def initialize(raw_body, level, counter, escape_html = false) @raw_body = raw_body @level = level @counter = counter @escape_html = escape_html end |
Instance Attribute Details
#counter ⇒ Object (readonly)
Returns the value of attribute counter.
10 11 12 |
# File 'lib/qiita/markdown/greenmat/heading_rendering.rb', line 10 def counter @counter end |
#escape_html ⇒ Object (readonly) Also known as: escape_html?
Returns the value of attribute escape_html.
10 11 12 |
# File 'lib/qiita/markdown/greenmat/heading_rendering.rb', line 10 def escape_html @escape_html end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
10 11 12 |
# File 'lib/qiita/markdown/greenmat/heading_rendering.rb', line 10 def level @level end |
#raw_body ⇒ Object (readonly)
Returns the value of attribute raw_body.
10 11 12 |
# File 'lib/qiita/markdown/greenmat/heading_rendering.rb', line 10 def raw_body @raw_body end |
Instance Method Details
#increment ⇒ Object
24 25 26 |
# File 'lib/qiita/markdown/greenmat/heading_rendering.rb', line 24 def increment raise NotImplementedError end |
#to_s ⇒ Object
20 21 22 |
# File 'lib/qiita/markdown/greenmat/heading_rendering.rb', line 20 def to_s raise NotImplementedError end |