class Paru::PandocFilter::Quoted

A Quoted node represents a quote with a type and the contents of the quote

@!attribute quote_type

@return [QUOTE_TYPE]

Constants

QUOTE_TYPE

A quote is either a single quote or a double quote

Attributes

quote_type[RW]

Public Class Methods

new(contents) click to toggle source

Create a new Quote node based on the contents

@param contents [Array]

Calls superclass method Paru::PandocFilter::Inline::new
# File lib/paru/filter/quoted.rb, line 37
def initialize(contents)
    @quote_type = contents[0]
    super contents[1]
end

Public Instance Methods

ast_contents() click to toggle source

The AST contents of a Quote node

Calls superclass method
# File lib/paru/filter/quoted.rb, line 43
def ast_contents()
    [
        @quote_type,
        super
    ]
end