class Ovec::TextCommandsNode
Attributes
command[R]
content[R]
Public Class Methods
new(command, content, text: true)
click to toggle source
If verbatim, do not interpret content as actual text.
# File lib/ovec/nodes.rb, line 19 def initialize(command, content, text: true) @command = command @content = content @text = text end
Public Instance Methods
text?()
click to toggle source
# File lib/ovec/nodes.rb, line 29 def text?; @text; end
to_tex()
click to toggle source
# File lib/ovec/nodes.rb, line 25 def to_tex "\\#@command{#{@content.to_tex}}" end