Class: Asuka::Block
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(lines, tag) ⇒ Block
constructor
A new instance of Block.
- #to_html ⇒ Object
Methods included from HTMLable
Constructor Details
#initialize(lines, tag) ⇒ Block
Returns a new instance of Block.
54 55 56 57 |
# File 'lib/asuka/document.rb', line 54 def initialize(lines, tag) super(lines) @tag = tag end |
Instance Method Details
#to_html ⇒ Object
59 60 61 |
# File 'lib/asuka/document.rb', line 59 def to_html wrap tag, lines.join("<br/>\n") end |