Class: Lilac::List
- Inherits:
-
Object
- Object
- Lilac::List
- Defined in:
- lib/lilac/list.rb
Instance Method Summary collapse
-
#initialize(text) ⇒ List
constructor
A new instance of List.
- #to_html ⇒ Object
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_html ⇒ Object
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 |