class Paru::PandocFilter::ListAttributes

ListAttributes represent the attributes of a list.

@see hackage.haskell.org/package/pandoc-types-1.17.0.4/docs/Text-Pandoc-Definition.html#t:ListAttributes

@!attribute start

@return [Integer]

@!attribute number_style

@return [STYLES]

@!attribute number_delim

@return [DELIMS]

Constants

DELIMS

The various delimeters of list numbers

STYLES

The various styles of list numbers

Attributes

number_delim[RW]
number_style[RW]
start[RW]

Public Class Methods

new(attributes) click to toggle source

Create a new ListAttribute object with attributes

@param attributes [Array] an array with start, number style, and

number delimeter
# File lib/paru/filter/list_attributes.rb, line 60
def initialize(attributes)
    @start = attributes[0]
    @number_style = attributes[1]
    @number_delim = attributes[2]
end

Public Instance Methods

to_ast() click to toggle source

Create an AST representation of this ListAttributes object

# File lib/paru/filter/list_attributes.rb, line 67
def to_ast()
    [
        @start,
        @number_style,
        @number_delim
    ]
end