Sha256: 55d872c88d23eb60f1bf01749bbbafa39e3eeb1b92e06fa52fb2b1d0b7e4809b

Contents?: true

Size: 530 Bytes

Versions: 1

Compression:

Stored size: 530 Bytes

Contents

# Public: Methods for managing items for Asciidoc olists, ulist, and dlists.
class Asciidoctor::ListItem
  # Public: Get the Array of Blocks from the list item's continuation.
  attr_reader :blocks

  # Public: Get/Set the String content.
  attr_accessor :content

  # Public: Get/Set the String list item anchor name.
  attr_accessor :anchor

  # Public: Initialize an Asciidoctor::ListItem object.
  #
  # content - the String content (default '')
  def initialize(content='')
    @content = content
    @blocks  = []
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asciidoctor-0.0.1 lib/asciidoctor/list_item.rb