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
Public Class Methods
Source
# File lib/paru/filter/list_attributes.rb, line 60 def initialize(attributes) @start = attributes[0] @number_style = attributes[1] @number_delim = attributes[2] end
Create a new ListAttribute object with attributes
@param attributes [Array] an array with start, number style, and
number delimeter
Public Instance Methods
Source
# File lib/paru/filter/list_attributes.rb, line 67 def to_ast() [ @start, @number_style, @number_delim ] end
Create an AST representation of this ListAttributes
object