Sha256: 179103066d1d580c7f2c6fd94dd909e5b30eb9ed0e3e66fa811189b917ab7807
Contents?: true
Size: 292 Bytes
Versions: 16
Compression:
Stored size: 292 Bytes
Contents
module Ecrire::Markdown module Nodes class OrderedList < Node def initialize(text) @content = "<li>#{text}</li>" end def append(text) @content << "<li>#{text}</li>" end def to_s "<ol>#{@content}</ol>" end end end end
Version data entries
16 entries across 16 versions & 1 rubygems