class Paru::PandocFilter::Div

A Div node consisting of an attribute object and a list of Block nodes.

Attributes

attr[RW]

A Div node has an attribute object

@!attribute attr

@return [Attr]

Public Class Methods

new(contents) click to toggle source

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
# File lib/paru/filter/div.rb, line 39
def initialize(contents)
    @attr = Attr.new contents[0]
    super contents[1]
end

Public Instance Methods

ast_contents() click to toggle source

Create an AST representation of this Div node.

Calls superclass method
# File lib/paru/filter/div.rb, line 45
def ast_contents()
    [
        @attr.to_ast,
        super
    ]
end
has_block?() click to toggle source

Has this Div node Blocks as children?

@return [Boolean] true

# File lib/paru/filter/div.rb, line 55
def has_block?
    true
end