Class: LatexList

Inherits:
Atom show all
Defined in:
lib/annlat/LaRuby.rb

Instance Method Summary collapse

Methods inherited from Latex

#*, #**, #+, #-, #-@, #/, #glue, #is, #my_json, #ne, #of, #to_ltx, #wrap

Constructor Details

#initialize(arr) ⇒ LatexList

Returns a new instance of LatexList.



212
213
214
# File 'lib/annlat/LaRuby.rb', line 212

def initialize(arr)
  @list = arr
end

Instance Method Details

#latexObject



216
217
218
# File 'lib/annlat/LaRuby.rb', line 216

def latex
  "(" + @list.join(", ") + ")"
end