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
Public Class Methods
Source
# File lib/paru/filter/quoted.rb, line 37 def initialize(contents) @quote_type = contents[0] super contents[1] end
Create a new Quote node based on the contents
@param contents [Array]
Calls superclass method
Paru::PandocFilter::Inline::new
Public Instance Methods
Source
# File lib/paru/filter/quoted.rb, line 43 def ast_contents() [ @quote_type, super ] end
The AST contents of a Quote node
Calls superclass method