Class: Lilac::List

Inherits:
Object
  • Object
show all
Defined in:
lib/lilac/list.rb

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ List

Returns a new instance of List.



6
7
8
9
# File 'lib/lilac/list.rb', line 6

def initialize(text)
  @text = text
  @data = nil
end

Instance Method Details

#to_htmlObject



11
12
13
14
15
# File 'lib/lilac/list.rb', line 11

def to_html
  parse! unless @data
  renderer = Lilac::Renderer.new(@data)
  renderer.render
end