class Paru::PandocFilter::Str
A Str
node represents a string
@!attribute string
@return [String] the value of this Str node.
Attributes
Public Class Methods
Source
# File lib/paru/filter/str.rb, line 34 def initialize(value) @string = value end
Create a new Str
node based on the value
@param value [String]
Public Instance Methods
Source
# File lib/paru/filter/str.rb, line 39 def ast_contents() @string end
The AST contents
Source
# File lib/paru/filter/str.rb, line 53 def has_inline?() false end
Has the Str
node inline contents?
@return [Boolean] false
Source
# File lib/paru/filter/str.rb, line 46 def has_string?() true end
Has the Str
node a string value? Of course!
@return [Boolean] true