class Paru::PandocFilter::Span
A Span
node is a general Inline
level node with attributes and contens
@!attribute attr
@return [Attr]
Attributes
attr[RW]
Public Class Methods
new(contents)
click to toggle source
Create a new Span
node based on the contents
@param contents [Array]
Calls superclass method
Paru::PandocFilter::Inline::new
# File lib/paru/filter/span.rb, line 35 def initialize(contents) @attr = Attr.new contents[0] super contents[1] end
Public Instance Methods
ast_contents()
click to toggle source
The AST contents
@return [Array]
Calls superclass method
# File lib/paru/filter/span.rb, line 43 def ast_contents() [ @attr.to_ast, super ] end