class Paru::PandocFilter::RawBlock

A RawBlock node has a format and a string contents

@!attribute format

@return [String]

@!attribute string

@return [String]

Attributes

format[RW]
string[RW]

Public Class Methods

new(contents) click to toggle source

Create a new RawBlock node based on the contents

@param contents [Array]

# File lib/paru/filter/raw_block.rb, line 38
def initialize(contents)
    @format, @string = contents
end

Public Instance Methods

ast_contents() click to toggle source

Create an AST representation of this RawBlock node

# File lib/paru/filter/raw_block.rb, line 43
def ast_contents()
    [
        @format,
        @string
    ]
end
has_string?() click to toggle source

Has this RawBlock node a string value?

@return [Boolean] true

# File lib/paru/filter/raw_block.rb, line 53
def has_string?
    true
end