class Paru::PandocFilter::Div
A Div
node consisting of an attribute object and a list of Block
nodes.
Attributes
Public Class Methods
Source
# File lib/paru/filter/div.rb, line 39 def initialize(contents) @attr = Attr.new contents[0] super contents[1] end
Create a new Div
node based on the contents
@param contents [Array] an array containing the attribute object
and the contents of this div.
Calls superclass method
Public Instance Methods
Source
# File lib/paru/filter/div.rb, line 45 def ast_contents() [ @attr.to_ast, super ] end
Create an AST representation of this Div
node.
Calls superclass method
Source
# File lib/paru/filter/div.rb, line 55 def has_block? true end
Has this Div
node Blocks as children?
@return [Boolean] true