class Paru::PandocFilter::Str

A Str node represents a string

@!attribute string

@return [String] the value of this Str node.

Attributes

string[RW]

Public Class Methods

new(value) click to toggle source

Create a new Str node based on the value

@param value [String]

# File lib/paru/filter/str.rb, line 34
def initialize(value)
    @string = value
end

Public Instance Methods

ast_contents() click to toggle source

The AST contents

# File lib/paru/filter/str.rb, line 39
def ast_contents()
    @string
end
has_inline?() click to toggle source

Has the Str node inline contents?

@return [Boolean] false

# File lib/paru/filter/str.rb, line 53
def has_inline?()
    false
end
has_string?() click to toggle source

Has the Str node a string value? Of course!

@return [Boolean] true

# File lib/paru/filter/str.rb, line 46
def has_string?()
    true
end