class Paru::PandocFilter::Code
A Code
node, with an attribute object and the code itself as a string.
@!attribute attr
@return [Attr]
@!attribute string
@return [String]
Attributes
Public Class Methods
Source
# File lib/paru/filter/code.rb, line 38 def initialize(contents) @attr = Attr.new contents[0] @string = contents[1] end
Create a new Code
node
@param contents [Array] an array of the attribute and the code
Public Instance Methods
Source
# File lib/paru/filter/code.rb, line 44 def ast_contents() [ @attr.to_ast, @string ] end
Create an AST representation of this Code
node.
Source
# File lib/paru/filter/code.rb, line 61 def has_inline?() false end
Has this code node inline contents?
@return [Boolean] false
Source
# File lib/paru/filter/code.rb, line 54 def has_string?() true end
Has this Code
node a string contents?
@return [Boolean] true