Class: Asuka::Header
Instance Method Summary collapse
-
#initialize(line, level) ⇒ Header
constructor
A new instance of Header.
- #to_html ⇒ Object
Methods included from HTMLable
Constructor Details
#initialize(line, level) ⇒ Header
Returns a new instance of Header.
110 111 112 113 |
# File 'lib/asuka/document.rb', line 110 def initialize(line, level) @line = line @tag = "h#{level}" end |
Instance Method Details
#to_html ⇒ Object
115 116 117 |
# File 'lib/asuka/document.rb', line 115 def to_html wrap tag, line end |