Class: Asuka::Block

Inherits:
LineGroup show all
Defined in:
lib/asuka/document.rb

Direct Known Subclasses

Blockquote, Paragraph

Instance Method Summary collapse

Methods included from HTMLable

#==, #wrap, #wrap_indent

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_htmlObject



59
60
61
# File 'lib/asuka/document.rb', line 59

def to_html
  wrap tag, lines.join("<br/>\n")
end