class Ovec::MathNode
Constants
- DISPLAY
- INLINE
Attributes
content[R]
type[R]
Public Class Methods
new(type, content)
click to toggle source
# File lib/ovec/nodes.rb, line 71 def initialize(type, content) @type = type @content = content end
Public Instance Methods
to_tex()
click to toggle source
# File lib/ovec/nodes.rb, line 76 def to_tex if type == INLINE "$#{content}$" else "$$#{content}$$" end end