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

Version Path
ecrire-0.30.3 lib/ecrire/markdown/nodes/ordered_list.rb
ecrire-0.30.2 lib/ecrire/markdown/nodes/ordered_list.rb
ecrire-0.30.1 lib/ecrire/markdown/nodes/ordered_list.rb
ecrire-0.30.0 lib/ecrire/markdown/nodes/ordered_list.rb
ecrire-0.29.0 lib/ecrire/markdown/nodes/ordered_list.rb
ecrire-0.28.3 lib/ecrire/markdown/nodes/ordered_list.rb
ecrire-0.28.2 lib/ecrire/markdown/nodes/ordered_list.rb
ecrire-0.28.1 lib/ecrire/markdown/nodes/ordered_list.rb
ecrire-0.28.0 lib/ecrire/markdown/nodes/ordered_list.rb
ecrire-0.27.0 lib/ecrire/markdown/nodes/ordered_list.rb
ecrire-0.26.3 lib/ecrire/markdown/nodes/ordered_list.rb
ecrire-0.26.2 lib/ecrire/markdown/nodes/ordered_list.rb
ecrire-0.26.1 lib/ecrire/markdown/nodes/ordered_list.rb
ecrire-0.26.0 lib/ecrire/markdown/nodes/ordered_list.rb
ecrire-0.25.2 lib/ecrire/markdown/nodes/ordered_list.rb
ecrire-0.25.1 lib/ecrire/markdown/nodes/ordered_list.rb