Class: Qiita::Markdown::Greenmat::HeadingRendering::AbstractHeading

Inherits:
Object
  • Object
show all
Defined in:
lib/qiita/markdown/greenmat/heading_rendering.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#counterObject (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_htmlObject (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

#levelObject (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_bodyObject (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

#incrementObject

Raises:

  • (NotImplementedError)


24
25
26
# File 'lib/qiita/markdown/greenmat/heading_rendering.rb', line 24

def increment
  raise NotImplementedError
end

#to_sObject

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/qiita/markdown/greenmat/heading_rendering.rb', line 20

def to_s
  raise NotImplementedError
end