Class: Sablon::HTMLConverter::ListParagraph

Inherits:
Paragraph show all
Defined in:
lib/sablon/html/ast.rb

Constant Summary collapse

LIST_STYLE =
<<-XML.gsub("\n", "")
<w:numPr>
<w:ilvl w:val="%s" />
<w:numId w:val="%s" />
</w:numPr>
XML

Constants inherited from Paragraph

Paragraph::PATTERN

Instance Attribute Summary collapse

Attributes inherited from Paragraph

#runs, #style

Instance Method Summary collapse

Methods inherited from Paragraph

#accept, #inspect, #to_docx

Methods inherited from Node

#accept, node_name

Constructor Details

#initialize(style, runs, numid, ilvl) ⇒ ListParagraph

Returns a new instance of ListParagraph.



89
90
91
92
93
# File 'lib/sablon/html/ast.rb', line 89

def initialize(style, runs, numid, ilvl)
  super style, runs
  @numid = numid
  @ilvl = ilvl
end

Instance Attribute Details

#ilvlObject

Returns the value of attribute ilvl.



88
89
90
# File 'lib/sablon/html/ast.rb', line 88

def ilvl
  @ilvl
end

#numidObject

Returns the value of attribute numid.



88
89
90
# File 'lib/sablon/html/ast.rb', line 88

def numid
  @numid
end