class Paru::PandocFilter::RawBlock
A RawBlock
node has a format and a string contents
@!attribute format
@return [String]
@!attribute string
@return [String]
Attributes
Public Class Methods
Source
# File lib/paru/filter/raw_block.rb, line 38 def initialize(contents) @format, @string = contents end
Create a new RawBlock
node based on the contents
@param contents [Array]
Public Instance Methods
Source
# File lib/paru/filter/raw_block.rb, line 43 def ast_contents() [ @format, @string ] end
Create an AST representation of this RawBlock
node
Source
# File lib/paru/filter/raw_block.rb, line 53 def has_string? true end
Has this RawBlock
node a string value?
@return [Boolean] true