class Ovec::CombinedNode

Attributes

content[R]

Public Class Methods

new(content = []) click to toggle source
# File lib/ovec/nodes.rb, line 105
def initialize(content = [])
        @content = content
end

Public Instance Methods

<<(thing) click to toggle source
# File lib/ovec/nodes.rb, line 109
def <<(thing)
        @content << thing
end
[](index) click to toggle source
# File lib/ovec/nodes.rb, line 121
def [](index)
        @content[index]
end
length() click to toggle source
# File lib/ovec/nodes.rb, line 117
def length
        @content.length
end
to_tex() click to toggle source
# File lib/ovec/nodes.rb, line 113
def to_tex()
        content.map(&:to_tex).join('')
end